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: Control Color Procs and disabled controls



fwiw: I found that a TextMode(grayishTextOr) worked perfectly here...

On Tuesday, February 26, 2002, at 07:25 PM, Bryan Pietrzak wrote:

(I'm reposting this with a more relevant subject...)

I'm installing this control color proc on a static text control to
change its color. (It's for a score pad and when the player's score
drops below zero, I want it to be red.)

My code to do this is in the original e-mail on this thread, but I've
noticed a problem...

When the control is disabled via DisableControl or deactivated via
DeactivateControl it's no longer drawing in the dimmed appearance.
Clearly I'm not handling this quite right. Should I simply check to see
if the control is disabled or deactivated and set up a dimmed fore color
instead?

If so, I'd like to match what the OS does, how can I make an arbitrary
RGB color "disabled" or "deactivated" in the Control Manager sense?

One suggestion was to use GetGray, but I'm not sure how this could be used
in a theme savvy way when the window has a theme background (the lined
pattern in this case).
_______________________________________________
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: 
 >Control Color Procs and disabled controls (From: Bryan Pietrzak <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.