Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connect Toolbar button to a form
Message
From
14/04/2003 16:17:05
 
 
To
14/04/2003 10:56:42
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00777177
Message ID:
00777453
Views:
8
This message has been marked as a message which has helped to the initial question of the thread.
Hi Steve:

>Now lets say my form is up, my button is enabled on the toolbar. How do i disable the button on the toolbar from the form? (interactively)

The only way you can disable it from the form is to "create" the circumstances that the form.IsEnabled() method will interpret to provide the disabled state for the button (or more specifically, its corresponding action).

Once you feel that you have done this, simply issue a cmStateManager.refreshAll('Form Carry') - this will refresh just the 'Form Carry' action and any objects registered to it for a Refresh message.

HTH
-=Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform