| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
(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).
| References: | |
| >Control Color Procs and disabled controls (From: Bryan Pietrzak <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.