Mailing Lists: Apple Mailing Lists

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

Solved: DrawThemeTextBox & kThemeStateInactive



For the archives....


When in a context, DrawThemeTextBox draws using the current context fill color, not the text color.


The solution is to set the fill color of the context first. SetThemeTextColor will not work.

I used GetThemeTextColor to get the RGBColor and then CGContextSetRGBFillColor.


The behaviour of DrawThemeTextBox is described in the headers, and in the online documentation too.


Thanks to all who helped.

Douglas


_______________________________________________ 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: DrawThemeTextBox & kThemeStateInactive broken? (From: Laurence Harris <email@hidden>)
 >Re: DrawThemeTextBox & kThemeStateInactive broken? (From: Douglas Norton <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.