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: Tabs control background in old PowerPlant application



Thanks all, I'll give that a whirl.

On 22 Mar 2007, at 15:43, Eric Schlegel wrote:


On Mar 20, 2007, at 12:30 PM, Steve Baxter wrote:

DrawGroupBoxWithContext() draws both the checkbox itself and the group box. The problem is that it erases again, but now with the wrong background! It doesn't call SetUpControlBackground() again so it will use whatever background has been previously set up. I think the bug is that SetThemeDrawingState() is called too early - it should be called at the end of HiCheckBox::DrawSelf() not halfway through.

Obviously I don't have the source code, but could anyone from Apple conform this? Can anyone think of a workaround?

Yes, I see this happening in the code, and it does seem like a bug, although I don't remember the desired behavior of primary/secondary group boxes well enough to be completely sure.


I like Mike's suggestion of using a QD rgn proc to catch the erase performed by DrawGroupBoxWithContext and fix up the the port state.

-eric

Steve Baxter Software Development Manager Improvision +44-2476-692229

Image Processing and Vision Company Limited (trading as Improvision) is a company registered in England and Wales with company number 2505778. VAT number GB536188722.



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Tabs control background in old PowerPlant application (From: Mike Kluev <email@hidden>)
 >Re: Tabs control background in old PowerPlant application (From: Steve Baxter <email@hidden>)
 >Re: Tabs control background in old PowerPlant application (From: Steve Baxter <email@hidden>)
 >Re: Tabs control background in old PowerPlant application (From: Steve Baxter <email@hidden>)
 >Re: Tabs control background in old PowerPlant application (From: Eric Schlegel <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.