Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Active control
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00151923
Message ID:
00152000
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform