Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change control fore color question.
Message
De
07/12/2001 13:07:23
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, États-Unis
 
 
À
07/12/2001 10:12:55
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00591146
Message ID:
00591299
Vues:
17
>Hi folks!
>Here is what I am trying to do. Every time user goes to control I’d like to change it’s color to yellow and when user left the control it’s color should goes back to default. I think I should add new property (ChangeForeColor = .T. is default) and a method (if ChangeForeColor = .T. then change fore color to yellow) to the control and call this method form GotFocus Event( change fore color to yellow and set ChangeForeColor to .F.) and LostFocus Event (change color to white and set ChangeForeColor back to .T.). I am working with MM 6.1
>
>How it is sounds?
>Thank you everybody!
>Igor


Igor,

I think you would want to change the BackColor (Black text on yellow) as opposed to forecolor (yellow text on white)

Be sure to add a property to your subclass of the framework control classes that you can use to store the current backcolor as you GetFocus so you can restore it as it loses focus.
Gil Munk


"If a nation expects to be ignorant and free, it expects what never was and never will be." - Thomas Jefferson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform