Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding cmdbuttons programatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01321009
Message ID:
01321073
Vues:
16
>>Use NewObject method with the class name and the classlib. Or set the classlib to your library and use AddObject with your classname.
>>
>>
>>>Instead of regular commandbutton, how would chg it to a cmdbutton I created in a vcx
>>>something like .class="mycmdbtn" ??
>
>Last question, how would I disable a programatically created commandbutton upon it being clicked?
>Thanks again!

Well, if this is a special class I guess you can add this.enabled = .f. in the Click method in the class.

If this is a generic button you may do it using bindevents and hook to Click method.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform