Hi!
I have a custom toolbar as per '1001 things'.
Would it be possible to retrieve a reference to a button on the toolbar so I can run code from a toolbarbutton from a menuitem?
-Bart
Hi!
Toolbar is created as class but is instanciated from the form-manager. To trace that code is a bit weird to me. (sorry authors of 1001 things...)
-Bart
I'd suggest you do store the code to execute somewhere, where you can call it from both the toolbar button and a menu item, eg a function/procedure in a prg.
That way you would not need a reference to a toolbar button in a menu item and everything is less complicated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.