Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ACTIVE textbox color
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00788927
Message ID:
00788931
Vues:
13
>In 1 fell swoop statement Am I able to have each textbox's forcolor take on a color of my choice when it gets the focus, then revert back when focus lost?

In your textbox base class add two custom properties MyForeColor and SaveForeColor.
 * GotFocus event
THIS.SaveForeColor = THIS.ForeColor 
THIS.ForeColor = This.MyForeColor
* LostFocus - restore ForeColor
THIS.ForeColor = THIS.SaveForeColor
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform