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.
_______________________________________________
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