Inserting and Editing Buttons

Contents
\<bookmark_value\>command buttons, see push buttons\</bookmark_value\>\<bookmark_value\>controls;adding to documents\</bookmark_value\>\<bookmark_value\>adding;push buttons\</bookmark_value\>\<bookmark_value\>keys;adding push buttons\</bookmark_value\>\<bookmark_value\>buttons;adding push buttons\</bookmark_value\>\<bookmark_value\>press buttons, see push buttons\</bookmark_value\>\<bookmark_value\>push buttons in documents\</bookmark_value\>

# 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

1. Choose \<item type=\"menuitem\"\>View - Toolbars - Form Controls\</item\>.

2. On the Form Controls toolbar, click the \<emph\>Push Button\</emph\> icon.

   The mouse pointer changes to a cross-hair.

3. In the document, drag to draw the button.

4. Right-click the button and choose Control Properties.

5. Specify the properties of the button.

6. To change the button label, click the \<emph\>General\</emph\> tab, and edit the text in the \<emph\>Label\</emph\> box.

7. 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\>.

8. Close the \<emph\>Properties\</emph\> dialog.

9. (Optional) Specify the properties of the form that the button belongs to.

10. Right-click the button and choose Form Properties.

11. The \<emph\>Form Properties\</emph\> dialog opens.

12. Specify the properties for the form and then close the dialog.

נושאים קשורים

Registering an Address Book