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: DrawThemeTextBox & kThemeStateInactive broken?



Larry,  David


When I use DrawThemeTextBox and specify a state of
kThemeStateInactive, my text appears exactly the same as when I use
kThemeStateActive.

Am I doing something wrong, or is this expected behaviour, or is it a
bug ?


No code needed, this is the expected behavior. If you want to disabled text,
you need to set the theme text color before drawing it. I think this should
work for you:


SetThemeTextColor( kThemeTextColorModelessDialogInactive );


The static text control sets up the color before drawing. You might consider calling SetUpControlTextColor.

You can also set the color manually yourself before calling HIThemeDrawTextBox (or DrawThemeTextBox).


Thank you gentlemen.

As my text is not in a control, but in the custom column of a databrowser, I shall resolve this with SetThemeTextColor.


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



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.