Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need help disabling a toolbar from a menu or form
Message
From
29/07/1999 23:07:24
 
 
To
29/07/1999 15:55:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00247931
Message ID:
00248039
Views:
13
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!)
Previous
Reply
Map
View

Click here to load this message in the networking platform