Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Active control
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00151923
Message ID:
00152000
Vues:
25
Michelle,

Toolbar buttons don't get focus. In it's Click() you can use _screen.ActiveForm.ActiveControl to find the control with focus.

You can also use a Voyeur pattern with a timer that polls the system and enables disables buttons. That's basically what VFP does if you notice how it's toolbars change state.

>Now how do I click on a button on a toolbar and have it do something to the active control? Or maybe "last active" would be more accurate, since the toolbar button would now be the active one.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform