Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Adding focus support to HIView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding focus support to HIView



On Monday, December 2, 2002, at 03:04 PM, Dario Accornero wrote:

There are two problems: the focus ring is drawn offset to the window frame; controls (scrollbars/disclosures) are drawn properly, but tracking occurs relative to the window frame. Wouldn't it be possible to handle some Carbon events (or use some DB callbacks) in order to override the behavior for these two cases? I was thinking of offsetting the QD port or CG context at the proper moments, if that is at all possible...

It might be, but I honestly don't know. If it were possible, the way to do it would be to override kEventControlDraw, since in compositing mode all drawing should occur inside that event.

As far as TScrollableView is concerned -- I have read the ScrollView sample but do not understand whether I should create the view using TScrollableView::Create or HIScrollViewCreate. The sample seems to use both.

The TScrollableView.cp view is just a customized view that draws a pattern using CG. It is placed inside an HIScrollView to demonstrate how to make your own views scrollable. You won't be using that view yourself; you should use HIScrollViewCreate to create the "wrapper" scrolling controller view.

-eric
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Adding focus support to HIView (From: Dario Accornero <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.