Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp5.0a Backcolor property of trextbox in grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00297483
Message ID:
00297515
Vues:
33
>Hello,
>
>I'd like to change the backcolor property of textbox in a grid whenever the user clicks in the textbox in question.
>
>I've added the following to the click event of the textbox (along with someother code).
>
>ThisForm.Stgrid1.Column7.Text1.backcolor = rgb(255,0,0)
>thisform.refresh
>
>Unfortunately it only changes the backcolor to red while the mouse is actually on the textbox with the left mousebutton depressed.
>
>As soon as the user releases the mousebutton the backcolor returns to its original color.
>

Look at the DynamicBackColor property of the column - there are grid classes here on UT that use them, and there's sample code in the help file describing how it works.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform