Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connect Toolbar button to a form
Message
De
14/04/2003 16:17:05
 
 
À
14/04/2003 10:56:42
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00777177
Message ID:
00777453
Vues:
9
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform