Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the BackColor, in code OK, as property not OK
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01262411
Message ID:
01262447
Vues:
14
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform