| Subject |
attaching a method to MYTOOLBAR |
| From |
Gaetano <gaetanodd@hotmail.com> |
| Date |
Tue, 1 Sep 2020 07:48:28 +1000 |
| Newsgroups |
dbase.getting-started |
Hi there,
I need a simple function to reset all the MYTOOLBAR button's enabled
property to true.
In the tutorial, we design custom controls in a form, then export it to
mycontrols.cc. However, I have not found a way to link a standalone
function (i.e. a function that is not linked to an event) to the
toolbar. If I add the function to the form, nothing links it to the
toolbar and it is not included in the "save as custom" export to
mycontrols.cc file.
I can add it manually to the CC file but every time I make an update to
the control in the form and re-export it, the function is lost because I
don't know how to attach the function to the toolbar object inside the form.
Is there a way around that or do I just need to remember to re-add the
function manually in the .cc file inside the toolbar class definition?
Thanks,
Gaetano.
|
|