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:
00409412
Views:
21
Thanks all for the info. What I did was subclass an app specific class from cusToolbars/xxfw.vcx. Then added a public RefreshSelect() method to the class that simply calls the Refresh() method of each cmdButton in toolbar of interest (in iatbrInstances array). The command buttons enable or disable themselves in their refresh methods. This is cool for me cause I only have 3 buttons that need the refreshing. Then in my for I call oToolbars.RefreshSelect(). This does the trick. I knew there was a good reason for the protected attribute but didn't see a way around it at first.

L8r.

George.
Previous
Reply
Map
View

Click here to load this message in the networking platform