Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom backcolor property
Message
De
05/02/1999 11:27:44
 
 
À
05/02/1999 11:22:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00184396
Message ID:
00184399
Vues:
16
>I would like to have a method return a color to the same object's backcolor property (this object is a text box).
>
>The idea is to make the backcolor of the object to be dependant on the value in the field. The value in the field changes when a user double clicks on the field, or enters invalid data into another textbox.
>
>The problem is that if I put code into the objects refresh method, the color doesn't always update when the value of the textbox changes.
>
>So my brainstorm is to make this.backcolor = mycolor() and then let the refresh method be empty.
>
>The problem is whatever I return from mycolor() throws an error when I try to instantiate the text box.
>
What exactly error message you received? Is 'mycolor' system procedure or custom method?
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform