Sergey has an excellent technique, but with VFP there are always many ways to produce a skinless cat! By using the venerable FP color pairs you can produce a reliable form backcolor as follows:
EVALUATE('RGB('+substr(rgbscheme(1,2),at(',',rgbscheme(1,2),3)+1))
To see how the windows colors map to the FP RBGSCHEME check my Color Spelunker tool in downloads. Using the rgbscheme techniques you can produce pleasing color combinations consistant with the current windows color settings.
Glenn
Glenn
>I want to set the _Screen.backcolor to the same color the forms all use as their background (when forms use the default backcolor). I want to set it before any forms are opened up. Is there a way to determine what the default backcolor for all forms should be before any forms are opened up so I can grab that color and set the screen backcolor to it?
>
>TIA,
>Tracy