Page 1 of 1

[Solved] How to attach a macro to a push button

Posted: Wed Jun 10, 2009 2:49 am
by sirwolf2007
i have the macros done and the button setup but i cant figure out how to attch the macro to the button from the design modesirwolf2007

Re: How to attach a macro to a push button

Posted: Wed Jun 10, 2009 5:01 am
by FJCC
Right click on the button, choose Controls and then choose the Events tab of the dialog that appears. Choose an event type, say Mouse Button Released, and click on the associated small button with three dots on the right edge of the dialog. This will bring up a new dialog. Click the Macro button at the top right and navigate to the macro you want. After choosing the macro, click Accept to get back to the first dialog. This will now show the macro next to the chosen event. You can close this dialog and switch the button out of design mode. It will now activate the macro when you click and release.

(I don't have my interface in English at the moment, so the exact labels of dialogs and buttons may not be right in my description.)