forked from amazingfate/help
INTEGRATION: CWS helpcontentbeta (1.1.2); FILE MERGED
2004/10/28 10:41:23 fpe 1.1.2.3: Last update before final beta handover to G11N 2004/10/06 14:56:21 fpe 1.1.2.2: Regular Update 2004/09/16 11:47:49 fpe 1.1.2.1: Regular Update
This commit is contained in:
@ -56,60 +56,70 @@
|
||||
|
||||
<helpdocument version="1.0">
|
||||
<meta>
|
||||
<topic id="textsharedguideformfieldsxml" indexer="include" status="DEPRECATED">
|
||||
<topic id="textsharedguideformfieldsxml" indexer="include" status="PUBLISH">
|
||||
<title id="tit" xml-lang="en-US">Inserting and Editing Buttons</title>
|
||||
<filename>/text/shared/guide/formfields.xhp</filename>
|
||||
</topic>
|
||||
<history>
|
||||
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
|
||||
<lastedited date="2004-06-08T18:00:27">FPE: Deleted screenshots. Needs rework!</lastedited>
|
||||
<lastedited date="2004-10-18T15:54:49">FPE: Deleted screenshots. Needs rework!
|
||||
DEDR: Reworked</lastedited>
|
||||
</history>
|
||||
</meta>
|
||||
<body>
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_id3149798"><bookmark_value>buttons; examples</bookmark_value>
|
||||
<bookmark_value>controls; examples</bookmark_value>
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_id3149798"><bookmark_value>command buttons in documents</bookmark_value>
|
||||
<bookmark_value>controls;adding to documents</bookmark_value>
|
||||
<bookmark_value>adding;command buttons</bookmark_value>
|
||||
</bookmark>
|
||||
<paragraph role="heading" id="hd_id3149798" xml-lang="en-US" level="1" l10n="U" oldref="5"><variable id="formfields"><link href="text/shared/guide/formfields.xhp" name="Inserting and Editing Buttons">Inserting and Editing Buttons</link>
|
||||
<paragraph role="heading" id="hd_id3149798" xml-lang="en-US" level="1" l10n="U" oldref="5"><variable id="formfields"><link href="text/shared/guide/formfields.xhp" name="Inserting and Editing Buttons">Adding a Command Button to a Document</link>
|
||||
</variable></paragraph>
|
||||
<paragraph role="paragraph" id="par_idN10731" xml-lang="en-US" l10n="NEW">You can use the <emph>Controls</emph> toolbar to add checkboxes, buttons, tables showing data records, and other controls to a document.</paragraph>
|
||||
<paragraph role="head2" id="par_idN1077F" xml-lang="en-US" l10n="NEW">To Add a Button to a Document </paragraph>
|
||||
<list type="ordered">
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="par_id3154751" xml-lang="en-US" l10n="U" oldref="6">Open the <emph>Form Functions</emph> floating toolbar.</paragraph>
|
||||
<paragraph role="listitem" id="par_id3154751" xml-lang="en-US" l10n="U" oldref="6">Choose <item type="menuitem">View - Toolbars - Controls</item>.</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="par_id3145345" xml-lang="en-US" l10n="U" oldref="7">Click the <emph>Push Button</emph> icon in the <emph>Form Functions</emph> floating toolbar. The pointer will change to a cross-hair symbol.</paragraph>
|
||||
<paragraph role="listitem" id="par_id3145345" xml-lang="en-US" l10n="U" oldref="7">On the <emph>Controls</emph> toolbar, click the <emph>Push Button</emph> icon.</paragraph>
|
||||
<paragraph role="listitem" id="par_idN107A4" xml-lang="en-US" l10n="NEW">The mouse pointer changes to a cross-hair.</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="par_id3159233" xml-lang="en-US" l10n="U" oldref="8">In the document, drag open a box representing the size and position of the command button you want to insert.</paragraph>
|
||||
<paragraph role="listitem" id="par_id3154749" xml-lang="en-US" l10n="U" oldref="9">The new button is selected.</paragraph>
|
||||
<paragraph role="listitem" id="par_id3159233" xml-lang="en-US" l10n="U" oldref="8">In the document, drag to draw the button.</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="par_id3147275" xml-lang="en-US" l10n="U" oldref="79">To select a button, click on the edge, where the mouse pointer appears with a cross with four arrows, or keep the <item type="keycode">Alt</item> key pressed.</paragraph>
|
||||
<paragraph role="listitem" id="par_idN107B2" xml-lang="en-US" l10n="NEW">Right-click the button and choose <emph>Control</emph>.</paragraph>
|
||||
</listitem>
|
||||
</list>
|
||||
<paragraph role="paragraph" id="par_id3156329" xml-lang="en-US" l10n="U" oldref="80">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.</paragraph>
|
||||
<list type="unordered">
|
||||
<list type="ordered" startwith="2">
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="par_id3154897" xml-lang="en-US" l10n="U" oldref="10">Select the <emph>Control</emph> command from the context menu of the selected button to access the <emph>Properties: Button</emph> dialog. You can also call this dialog by clicking the <emph>Control Properties</emph> icon contained in the <emph>Form Functions</emph> floating toolbar.</paragraph>
|
||||
<paragraph role="listitem" id="par_idN107CD" xml-lang="en-US" l10n="NEW">Specify the properties of the button.</paragraph>
|
||||
</listitem>
|
||||
</list>
|
||||
<list type="unordered">
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="par_id3154923" xml-lang="en-US" l10n="U" oldref="11">You can change the text on the button under <emph>General -Title</emph>.</paragraph>
|
||||
<paragraph role="listitem" id="par_id3154923" xml-lang="en-US" l10n="CHG" oldref="11">To change the button label, click the <emph>General</emph> tab, and edit the text in the <emph>Label</emph> box.</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="par_id3147303" xml-lang="en-US" l10n="U" oldref="12">Use the <emph>Events</emph> tab if you would like to run a macro when the button has been clicked. Click the<emph> ... </emph>button at the right to access a selection dialog for macros.</paragraph>
|
||||
<paragraph role="listitem" id="par_id3147303" xml-lang="en-US" l10n="U" oldref="12">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>.<comment>UFI: see #i34509#</comment></paragraph>
|
||||
</listitem>
|
||||
</list>
|
||||
<list type="ordered" startwith="3">
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="par_idN10814" xml-lang="en-US" l10n="NEW">Close the <emph>Properties: Button</emph> dialog.</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="par_id3147350" xml-lang="en-US" l10n="CHG" oldref="76">(Optional) Specify the properties of the form that the button belongs to.</paragraph>
|
||||
</listitem>
|
||||
</list>
|
||||
<list type="unordered">
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="par_id3151380" xml-lang="en-US" l10n="U" oldref="13">The <emph>Event</emph> 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 <emph>Assign</emph> button.</paragraph>
|
||||
<paragraph role="listitem" id="par_idN10828" xml-lang="en-US" l10n="NEW">Right-click the button and choose <emph>Form</emph>.</paragraph>
|
||||
<paragraph role="listitem" id="par_idN1082F" xml-lang="en-US" l10n="NEW">The <emph>Form Properties</emph> dialog opens.</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph role="listitem" id="par_id3153192" xml-lang="en-US" l10n="U" oldref="14">End the design mode using the icon on the <emph>Form Functions</emph> floating toolbar. If you now click on your button in the document (not on the edge), the assigned macro will run.</paragraph>
|
||||
<paragraph role="listitem" id="par_idN10837" xml-lang="en-US" l10n="NEW">Specify the properties for the form and then close the dialog.</paragraph>
|
||||
</listitem>
|
||||
</list>
|
||||
<paragraph role="paragraph" id="par_id3147350" xml-lang="en-US" l10n="U" oldref="76">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 <emph>Form Function</emph> floating toolbar on the <emph>Form properties</emph> icon.</paragraph>
|
||||
<paragraph role="paragraph" id="par_id3153728" xml-lang="en-US" l10n="U" oldref="21">The other icons on the <emph>Form Functions</emph> 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.</paragraph>
|
||||
<section id="relatedtopics">
|
||||
<embed href="text/shared/guide/data_addressbook.xhp#data_addressbook"/>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user