Inserting and Editing Buttons/text/shared/guide/formfields.xhpSun Microsystems, Inc.FPE: Deleted screenshots. Needs rework!buttons; examplescontrols; examplesInserting and Editing Buttons
Open the Form Functions floating toolbar.Click the Push Button icon in the Form Functions floating toolbar. The pointer will change to a cross-hair symbol.In the document, drag open a box representing the size and position of the command button you want to insert.The new button is selected.To select a button, click on the edge, where the mouse pointer appears with a cross with four arrows, or keep the Alt key pressed.You can move and scale a selected button like a graphic. You can open dialogs for editing properties through the context menu for the button.Select the Control command from the context menu of the selected button to access the Properties: Button dialog. You can also call this dialog by clicking the Control Properties icon contained in the Form Functions floating toolbar.You can change the text on the button under General -Title.Use the Events tab if you would like to run a macro when the button has been clicked. Click the ... button at the right to access a selection dialog for macros.The Event list box contains all possible events to which a control can react. Select the macro will run when the button is clicked, and then confirm your selection by clicking the Assign button.End the design mode using the icon on the Form Functions floating toolbar. If you now click on your button in the document (not on the edge), the assigned macro will run.In addition to the properties of the selected controls, you also can control the properties of the form to which the control belongs. Click the Form Function floating toolbar on the Form properties icon.The other icons on the Form Functions floating toolbar serve to define interactive documents. In $[officename] Basic you can also define your own dialogs - for this purpose, there are other controls for dialogs available to you in the $[officename] Basic IDE.