With the UI Designer, you can add a button or other control that runs a macro or a macro-related action to the Ribbon. All supported macros, including RCL scripts and legacy macro editors, are available as actions. Legacy compatibility features must be installed for these options to appear in the Actions list. For more information, see the Reflection Administrator's Reference.
NOTE:The UI Designer is just one way to create controls — the Context Menu Editor, Keyboard Mapper, Mouse Mapper, and Hotspots provide other ways for you to run favorite macros and actions.
To add a button that runs a macro-related action
On the Appearancetab, click UI Designer.
From the Design View pane, from the Ribbon simulation, select the tab and group to which you want to add the control.
To select a group, click the group name. Create a new group, if needed.
From the Insert Controls pane, click Button.
From the Settings pane, click the Select Actionbutton.
From the Action category menu, choose Macro.
Select an action from theAction list.
If you selected an action that runs a macro, select the appropriate options:
To |
Choose |
---|---|
Select a macro (or open a file that contains macros) each time you click the button |
Select macro when action occurs |
Specify a macro that runs automatically each time you click the button |
Select macro You can enter command-line arguments for the macro in the Macro data field |
From the Settings pane, set the properties for the new button that appears on the Ribbon.
Click OK.
If prompted, type a new filename for the custom ribbon and then save the file.
The button is saved to a custom ribbon file that you can use in other session documents.