Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change control fore color question.
Message
De
10/12/2001 12:23:55
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, États-Unis
 
 
À
10/12/2001 09:13:48
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00591146
Message ID:
00592198
Vues:
21
>Hey Gil, thanks again. Yes, you're right, it's a BackColor propert, not ForeColor. I've added a method to the mceditbox(our company subclass of ceditbox), called SetBackColor:
>
>IF THIS.lChangeBackColor = .T. then
> THIS.BACKCOLOR =8454143
>ELSE
> THIS.BACKCOLOR =16777215
> THIS.lChangeBackColor = .T.
>ENDIF
>I am hard coding this(which I hate) because I don't think our users will use another color.But I will try your advise with the property to hold default BackColor.
>There is another VFP method ResetToDefault which sounds like what I need, I've tryied to used it but it didn't work, I mean I've got an error.
>What do you think?
>Igor

I've never used the ResetToDefault method. It does look like it should reset the color the the inherited value when the user leaves the control. What is the error?
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