| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Well, I plugged your sample code into a new app created from the Carbon (nib-based) template in Project Builder, and it worked; the SubPaneCarbonEventHandler function was called regularly in response to the invalidation of the window that occurred from the timer.
Really, the _only_ thing I can think of that would explain why the control isn't being drawn is if UpdateControls or DrawControls is not being called. Just to verify:
- you don't have a kEventWindowDrawContent handler, or if you do, you are calling UpdateControls or DrawControls in it?
- you don't have a kEventWindowUpdate handler, or if you do, you are either sending a DrawContent event from it, or if you aren't, you're calling UpdateControls or DrawControls from it?
If those questions don't get you on the right track, could you try attaching to your app with gdb, set breakpoints on UpdateControls and DrawControls, and make sure one of them being called somewhere?
| References: | |
| >Re: custom controls and InvalWindowRect (?) (From: Eric Schlegel <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.