Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Active control
Message
From
28/10/1998 16:24:01
 
 
To
28/10/1998 16:20:31
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00151923
Message ID:
00151932
Views:
22
>>Is there a way to click on a toolbar and have it know and be able to access the last active control? And a way to enable or disable a toolbar depending on what control is active?
>>
>>Basically, I want to put in the gotfocus something to turn the toolbar on, then while you're in that control, the toolbar can control its properties, and then in the lostfocus the toolbar gets disabled.
>>
>>How do I do this?
>>
>>Thanks,
>>
>>-Michelle
>
>Basically, you do exactly what you said:
>***Control.GotFocus event
>oApp.tbMain.SetAll("Enabled",.F.,"CommandButton")
>***Control.LostFocus event
>oApp.tbMain.SetAll("Enabled",.T.,"CommandButton")
>You may also diversify this code, if, for example, some buttons were already disabled before control got focus.


Hmmm... Back to needing an application object again... Any other way to talk to the toolbar? And what about the toolbar talking to the control?

Thanks,

-Michelle
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform