Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing a toolbar cmdbutton from within a form?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00266737
Message ID:
00409180
Views:
25
>Found this thread and thought my problem is kinda the same thing. I am trying to enable/disable a toolbar button from a form. How can I set the Enabled property of a button on a toolbar if it is protected? Am I missing something? BTW- Using Visual MaxFrame Professional 4.
>
>George.

First, I don't use and, therefore, am unfamiliar with VMP, so what follows is a generalization.

You can't externally modify a protected property. In this case, this would have to be done within the command button. The best place, from what I gather, to do this would be its Refresh method. All you'd have to do then is refresh the toolbar, and let the button take care of itself.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform