Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the color of the selected textbox
Message
 
À
27/05/2005 09:44:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01018113
Message ID:
01018115
Vues:
16
>Hi all,
>
>My user doesn't have very good eyesight and asked me if I could make the currently-selected field change background color so he could more easily recognize which field he was in (just looking for the cursor isn't very easy for him). Is this doable? If so, how?
>
>Thanks much!
>
>John

Create a class based on TextBox. In GotFocus Event put:
this.Tag = TRANSFORM(this.BackColor)
this.BackColor = RGB(whatever)

in LostFocus Event put:
this.BackColor = VAL(this.Tag)

and use this class in your forms
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform