diff --git a/helpcontent2/source/text/shared/guide/formfields.xhp b/helpcontent2/source/text/shared/guide/formfields.xhp index 53890fb298..655597a697 100755 --- a/helpcontent2/source/text/shared/guide/formfields.xhp +++ b/helpcontent2/source/text/shared/guide/formfields.xhp @@ -56,60 +56,70 @@ - + Inserting and Editing Buttons /text/shared/guide/formfields.xhp Sun Microsystems, Inc. -FPE: Deleted screenshots. Needs rework! +FPE: Deleted screenshots. Needs rework! +DEDR: Reworked -buttons; examples -controls; examples +command buttons in documents +controls;adding to documents +adding;command buttons -Inserting and Editing Buttons +Adding a Command Button to a Document +You can use the Controls toolbar to add checkboxes, buttons, tables showing data records, and other controls to a document. +To Add a Button to a Document -Open the Form Functions floating toolbar. +Choose View - Toolbars - Controls. -Click the Push Button icon in the Form Functions floating toolbar. The pointer will change to a cross-hair symbol. +On the Controls toolbar, click the Push Button icon. +The mouse pointer changes to a cross-hair. -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. +In the document, drag to draw the button. -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. +Right-click the button and choose Control. -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. +Specify the properties of the button. -You can change the text on the button under General -Title. +To change the button label, click the General tab, and edit the text in the Label box. -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. +To attach a macro to the button, click the Events tab, and click the ... button beside the button action that you want to run the macro. In the Assign Macro dialog, locate the macro that you want to use, and then click OK.UFI: see #i34509# + + + + +Close the Properties: Button dialog. + + +(Optional) Specify the properties of the form that the button belongs to. -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. +Right-click the button and choose Form. +The Form Properties dialog opens. -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. +Specify the properties for the form and then close the dialog. -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.