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:
00409210
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.

Why do you think the Enabled property is protected? It has an Assign method associated with it because of the security system but it isn't protected.

You could easily add a method to your toolbar class and call it via THISFORM.ioLinkedToolbar.MyMethod and this could set the properties for you. If your toolbar inherits from TbrScadoNav then your settings may get overwritten because a timer fires to syncronize the buttons on the toolbar with the appropriate buttons on the form and this fires every 300 milliseconds.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform