Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Screen.backcolor How to Set to Default Form Backcolor
Message
From
09/04/2004 07:04:10
 
 
To
08/04/2004 17:07:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00893415
Message ID:
00893500
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform