Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need help disabling a toolbar from a menu or form
Message
De
29/07/1999 23:07:24
 
 
À
29/07/1999 15:55:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00247931
Message ID:
00248039
Vues:
14
Hi Patrick,

>I have an formset that contains a toolbar. I need to disable the toolbar when the formset is not active from either a menu or active form. _screen.activeform and the typical formset.toolbar syntax with .setall("enabled",.F.,"commandbutton") does not seem to work properly.

Try putting code in every one of your toolbar button's refresh method to disable its self if the active form isn't one of the two you expect. Make sure to refresh the toolbar whenever you activate or deativate your forms. Honsetly, I don't feel that formsets are very valuable, and that you should have a custom Form Manager, but thats easy for me to say because I didn't create my FormManager (nor know how it works!)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform