Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TabPanels and kEventControlDraw



> But it's not invoked when the control is on a tab panel, and we
> switch to a different tab. I can switch back and forth all day, and
> never see a kEventControlDraw. As a result, my control (which is
> initially visible) disappears when I switch tabs, controls which
> should be on the other pane don't appear, and my first control never
> reappears even when I switch back.


Perhaps this is obvious, but when I start using tab controls it wasn't for
me.

Are you handling the tab control properly? Tabs and panes operates
independently, and when you click on a tab you must set the viewed pane by
code (it's the only way). So, you will need to install an EventHandler
targeting the tab control, so, when the user clicks on a tab, you must show
the correct pane and hide the others. After you show the pane that have your
custom control it's a grate moment to redraw it if you need to.


+ Daniel Dalto
_______________________________________________
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.



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.