Writer Guide

Advanced form customization
Linking a macro to a form control
You can set any form control (for example, text box or button) to
perform an action when triggered by some event. To see the full list of
events, right-click on the form control when the design mode is on,
select Control and click on the Events tab.
Figure 417: Control properties, Events tab
To assign a macro to an event:
1) Create the macro. See Chapter 13 (Getting Started with Macros)
in the Getting Started guide.
2) Be sure the form is in design mode. Right-click on the form
control, select Control and click on the Events tab.
3) Click the browse button to bring up the Assign action dialog
box (Figure 418).
4) Click the Macro button and select the macro from the list in the
Macro Selector dialog box. You return to the Assign action dialog
box. Repeat as needed, then click OK to close the dialog box.
Chapter 15 Using Forms in Writer 497
Free eBook Edition