Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where do I enable/disable
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00128401
Message ID:
00128431
Vues:
50
Peter,
I'm pretty sure it does. You can test it and if it doesn't, just call the refresh method in the object's Init method.

>Josh,
>thanks for your reply, is the Refresh method fired the first time the controls are instantiated?, this is a must for obvious reasons
>Regards
>Pete
>
>>You may want to put it in the Refresh() method of the control classes so that you can use THISFORM.Refresh() to refresh the controls when you change the mode (if you would ever change the mode when the form is displayed).
>>
>>
>>>Hello all,
>>>Being a relative newcomer to VFP when I wrote my first app, I still coded my enable/disable, RO/RW code for my form controls in the Init of my form, I am now a little more OOP aware and would like to move it to the relevant classes, e.g. in the init of the control
>>>
>>>if this.parent.mode = 'VIEW'
>>> this.readonly = .t.
>>>endif
>>>
>>>etc..., can anyone give me some direction on this.
>>>Regards
>>>Pete Kane
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform