Anybody know if there is a good way, perhaps an RB Function even, to determine 
the RGB components of one of those Windows system/object-defined colors?

For example, what if, as in Karen's situation, that "btnface" color is DROP 
DEAD GORGEOUS and I simply MUST HAVE it, dah-ling?

However, since this is user-definable and therefore potentially chameleon-like 
in its behavior, I gotta' have those RGB values ...

Is there a GetColor('RGB','Windows','btnface') or something similar that would 
return the string '[R255,G176,B128]'?

-- WHERE function is 
GetColor('ColorComponents','DefinitionSource','ObjectWithColor')
--    * ColorComponents: 'R','G','B','RGB'
--    * DefinitionSource: Windows, Rbase, Et Al.
--    * ObjectWithColor: 'BtnFace','InactiveCaption', Etc.

At the least, is it possibly retrievable at design-time (forms or reports) by 
assigning the Object.Color to a control, then, having done so, going back to 
'More Colors' and writing down the specific component values?

FWIW, I like that 'BtnFace' color and have chosen it by the same means, i.e. 
the ObjectName, so I'm interested in preventing any accidental displays of 
"wild and crazy" controls ... of course, it might be fun to see what randomized 
color-assignment to form controls would generate!


Thanks,
Steve in Memphis



From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, July 10, 2008 9:58am 09:58
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Windows Large font size and Forms

I agree with Dawn on this one.  In my very first 7.1 application, I used the 
default "btnface" color for the background in my form, panels, etc...   Looked 
beautiful here.  I sent screen images to the client and they loved it.  
Installed it there for the first on-site test, and all the controls had an 
unreadable dark-blue background!!!   On another computer the backgrounds were 
some kind of brown.  The office was staffed with 3 elderly ladies, each of whom 
had changed the windows default for larger fonts and different color schemes.   
I had to change every form, and alot of the controls, to use nothing but the 
standard color names.  To tell you the truth, I've gotten sloppy and don't do 
that anymore.  This was the only client I've had it happen with.

Karen



Marc
As far as the colors are concerned, always choose colors for your objects using 
color names, or custom colors (red, cyan, maroon, etc.) vs using the 'object' 
type colors (btnface,window,btnhighlight), etc.  Those are controlled by the 
users Windows settings.  Whatever their setting is for buttons is how your 
buttons will display.  If you specify the exact color you want, the windows 
setting shouldn't affect it any.
  
Also, I'm not sure if you use themes, the windows large font size might be 
ignored..you'd have to try.
  
Dawn


Reply via email to