Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the BackColor, in code OK, as property not OK
Message
From
23/10/2007 10:17:10
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01262411
Message ID:
01262784
Views:
20
This message has been marked as the solution to the initial question of the thread.
>Hi Tamar
>
>>>Thanks. I just want to know why RGBSCHEME(15...) does not return the same value when in a grid or page or when the form init()s?
>>
>>Possibly because it's an obsolete function, related to the coloring scheme used in FoxPro/DOS?
>
>I agree with you but this particular function in the help file does not say so. In any case I was looking for the form background color and trying to manipulate the colors in relation to the background so I do not have a color that is fixed but will adapt (hopefully looks good) if the form colors are different due to themes.
>
>Thanks.
>
>UPDATE: Does any current function give the same results?

If you want the form backcolor, just grab it: ThisForm.BackColor. Check this page on my website for more info: http://www.tomorrowssolutionsllc.com/Materials/apps4everyone.html

Tamar

You can also use the GetSysColor API function to pull colors from the user's color set.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform