Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the BackColor, in code OK, as property not OK
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01262411
Message ID:
01262447
Views:
13
>Hi all
>
>I am setting the back color of, say textbox, in LostFocus(). This backcolor is set using the return value from a custom function eg. RGBFormColor(0, 20, 0), it will return a color based on a calculation of the RGBSCHEME(15, 1).
>
>Essentially the value returned is constant, so I tried to put this call in a property with a value =RGBFormColor(0, 20, 0). Now the textbox in a grid does not get the color it should, directly on the Page it works OK.
>
>Please advise on how I can avoid the repetitive function call and yet get the result in a grid.
>
>Thanks.
>
>UPDATE: I tried to put the property on the form and use it in the text box, still no joy.

I think you may better to do it in the code using SetAll method to set it for all the textboxes you need.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform