Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object.Enable
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00394572
Message ID:
00395606
Vues:
10
That's a nice design concept, Jim. I'm going to guess that your base form class has the Editing property, right? So there's no way your txtBase class could get used on a form without an Editing property, otherwise txtBase.Refresh would have to check if Thisform.Editing exists, which would slow things down.

>...
>My txtBase class has a property named editable whihc is logical and this code in the Refresh method;
>
>
>IF This.Editable
>   This.Enabled = Thisform.Editing
>ENDIF
>
>
>This way if I want one textbox to NOT be switched then I just set its Editable property to .F. in the property sheet.
>
>I also have a txtSearch class that has the opposite logic in the Refresh, but it still honors the editable property.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform