Adding a Command Button to a Document
You can use the Form Controls toolbar to add checkboxes, buttons, tables showing data records, and other controls to a document.
To Add a Button to a Document
-
Choose \<item type=\"menuitem\"\>View - Toolbars - Form Controls\</item\>.
-
On the Form Controls toolbar, click the \<emph\>Push Button\</emph\> icon.
The mouse pointer changes to a cross-hair.
-
In the document, drag to draw the button.
-
Right-click the button and choose \<emph\>Control\</emph\>.
-
Specify the properties of the button.
-
To change the button label, click the \<emph\>General\</emph\> tab, and edit the text in the \<emph\>Label\</emph\> box.
-
To attach a macro to the button, click the \<emph\>Events\</emph\> tab, and click the \<emph\>... \</emph\>button beside the button action that you want to run the macro. In the \<emph\>Assign Macro\</emph\> dialog, locate the macro that you want to use, and then click \<emph\>OK\</emph\>.
-
Close the \<emph\>Properties\</emph\> dialog.
-
(Optional) Specify the properties of the form that the button belongs to.
-
Right-click the button and choose \<emph\>Form\</emph\>.
-
The \<emph\>Form Properties\</emph\> dialog opens.
-
Specify the properties for the form and then close the dialog.