Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing class in the form designer
Message
De
12/06/2001 13:04:35
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
11/06/2001 13:50:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00517829
Message ID:
00518491
Vues:
18
>>Why not just use 1 textbox class and add an Enabled_Assign method to your textbox that changes all the properties of the textbox to what the need to be under enabled and disabled conditions.
>
>... as I mentioned in the other reply. <s>
>
>But, there was other reasons why we wanted to isolate it. I might however turn into that approach when I'll update our framework.

Even with enabled_assign method, you may want to have either a separate class, or an additional property, which will keep the state of your textbox. I have such a property named .Say (as a reminder to the behavior of @x,y say var of non-V versions of Fox), which comes in handy when you need to disable all the controls on the form (except maybe a few) and then want to re-enable only some of them. In my case, those with .say=.t. remain disabled. So in Enabled_assign I could have something like
this.enabled=m.vNewVal and not this.say
so I could do thisform.setall('enabled',.t.) and the textboxes would get enabled as I want them.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform