Hi,
how do you programtically click a button on a Toolbar ?
Thanks
Michael
I think the best thing to do here would be to separate out the click event handler code for this one tool into its own method which is called from the normal ToolClick event handler. Then you can call that method from anywhere else in your code and simulate the button's click action without having to interact with the toolbars manager.
Hi Mike,
suppose to have a toolbar that composes itself at runtime and a specific place could be occupied by two (or more) different ButtonTools. In this case you can not know what code to execute, it depends on what ButtonTool has been used. So, please could you demonstrate me how to invoke the click programmatically?
Thanks in advance Gianni
could you please describe how? I am not sure I understand the solution.
Best regards,