Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing a toolbar cmdbutton from within a form?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00266737
Message ID:
00409412
Vues:
22
Thanks all for the info. What I did was subclass an app specific class from cusToolbars/xxfw.vcx. Then added a public RefreshSelect() method to the class that simply calls the Refresh() method of each cmdButton in toolbar of interest (in iatbrInstances array). The command buttons enable or disable themselves in their refresh methods. This is cool for me cause I only have 3 buttons that need the refreshing. Then in my for I call oToolbars.RefreshSelect(). This does the trick. I knew there was a good reason for the protected attribute but didn't see a way around it at first.

L8r.

George.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform