General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only