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: custom controls and InvalWindowRect (?)



On Friday, May 30, 2003, at 09:48 AM, Joseph J. Strout wrote:

- 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?

We do have a kEventWindowUpdate, but it's not getting invoked after the window invalidate; we only get kEventWindowDrawContent (when we have that handler instead).

That seems very strange. You have a kEventWindowUpdate handler, but it doesn't get called? Does your Update handler call DrawControls or UpdateControls, by the way?

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?

Well, would you be satisfied with a CodeWarrior breakpoint and step-through, as well as a DebugStr that says "Calling DrawControls" right before the call to DrawControls?

Probably.

I think we're going to give up on this for the time being, and go back to our own pane management. It makes it difficult to play nicely with things like tab panels, but at least it works most of the time.

Before you give up, send me an app that reproduces the problem and I'll see if I can figure out what's happening.

-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: custom controls and InvalWindowRect (?) (From: "Joseph J. Strout" <email@hidden>)



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.