1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2*cdf0e10cSrcweir<helpdocument version="1.0"> 3*cdf0e10cSrcweir 4*cdf0e10cSrcweir<!-- 5*cdf0e10cSrcweir*********************************************************************** 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 12*cdf0e10cSrcweir * 13*cdf0e10cSrcweir * This file is part of OpenOffice.org. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 16*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 17*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 18*cdf0e10cSrcweir * 19*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 20*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 21*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 23*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 24*cdf0e10cSrcweir * 25*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 26*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 27*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 28*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 29*cdf0e10cSrcweir * 30*cdf0e10cSrcweir ************************************************************************ 31*cdf0e10cSrcweir --> 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir<meta> 35*cdf0e10cSrcweir <topic id="textsharedguideformfieldsxml" indexer="include" status="PUBLISH"> 36*cdf0e10cSrcweir <title xml-lang="en-US" id="tit">Inserting and Editing Buttons</title> 37*cdf0e10cSrcweir <filename>/text/shared/guide/formfields.xhp</filename> 38*cdf0e10cSrcweir </topic> 39*cdf0e10cSrcweir </meta> 40*cdf0e10cSrcweir <body> 41*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3149798"><bookmark_value>command buttons, see push buttons</bookmark_value> 42*cdf0e10cSrcweir <bookmark_value>controls;adding to documents</bookmark_value> 43*cdf0e10cSrcweir <bookmark_value>inserting;push buttons</bookmark_value> 44*cdf0e10cSrcweir <bookmark_value>keys;adding push buttons</bookmark_value> 45*cdf0e10cSrcweir <bookmark_value>buttons;adding push buttons</bookmark_value> 46*cdf0e10cSrcweir <bookmark_value>press buttons, see push buttons</bookmark_value> 47*cdf0e10cSrcweir <bookmark_value>push buttons;adding to documents</bookmark_value> 48*cdf0e10cSrcweir</bookmark><comment>MW changed "adding;" to "inserting;"</comment> 49*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3149798" role="heading" 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> 50*cdf0e10cSrcweir</variable></paragraph> 51*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10731" role="paragraph" l10n="CHG">You can use the Form Controls toolbar to add checkboxes, buttons, tables showing data records, and other controls to a document.</paragraph> 52*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN1077F" role="heading" level="2" l10n="NEW">To Add a Button to a Document </paragraph> 53*cdf0e10cSrcweir <list type="ordered"> 54*cdf0e10cSrcweir <listitem> 55*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3154751" role="listitem" l10n="CHG" oldref="6">Choose <item type="menuitem">View - Toolbars - Form Controls</item>.</paragraph> 56*cdf0e10cSrcweir </listitem> 57*cdf0e10cSrcweir <listitem> 58*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3145345" role="listitem" l10n="CHG" oldref="7">On the Form Controls toolbar, click the <emph>Push Button</emph> icon.</paragraph> 59*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN107A4" role="listitem" l10n="NEW">The mouse pointer changes to a cross-hair.</paragraph> 60*cdf0e10cSrcweir </listitem> 61*cdf0e10cSrcweir <listitem> 62*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3159233" role="listitem" l10n="U" oldref="8">In the document, drag to draw the button.</paragraph> 63*cdf0e10cSrcweir </listitem> 64*cdf0e10cSrcweir <listitem> 65*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN107B2" role="listitem" l10n="NEW">Right-click the button and choose <emph>Control</emph>.</paragraph> 66*cdf0e10cSrcweir </listitem> 67*cdf0e10cSrcweir <listitem> 68*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN107CD" role="listitem" l10n="NEW">Specify the properties of the button.</paragraph> 69*cdf0e10cSrcweir </listitem> 70*cdf0e10cSrcweir <listitem> 71*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3154923" role="listitem" 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> 72*cdf0e10cSrcweir </listitem> 73*cdf0e10cSrcweir <listitem> 74*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3147303" role="listitem" 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> 75*cdf0e10cSrcweir </listitem> 76*cdf0e10cSrcweir <listitem> 77*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10814" role="listitem" l10n="NEW">Close the <emph>Properties</emph> dialog.</paragraph> 78*cdf0e10cSrcweir </listitem> 79*cdf0e10cSrcweir <listitem> 80*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3147350" role="listitem" l10n="CHG" oldref="76">(Optional) Specify the properties of the form that the button belongs to.</paragraph> 81*cdf0e10cSrcweir </listitem> 82*cdf0e10cSrcweir <listitem> 83*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10828" role="listitem" l10n="NEW">Right-click the button and choose <emph>Form</emph>.</paragraph> 84*cdf0e10cSrcweir </listitem> 85*cdf0e10cSrcweir <listitem> 86*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN1082F" role="listitem" l10n="NEW">The <emph>Form Properties</emph> dialog opens.</paragraph> 87*cdf0e10cSrcweir </listitem> 88*cdf0e10cSrcweir <listitem> 89*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10837" role="listitem" l10n="NEW">Specify the properties for the form and then close the dialog.</paragraph> 90*cdf0e10cSrcweir </listitem> 91*cdf0e10cSrcweir </list> 92*cdf0e10cSrcweir <section id="relatedtopics"> 93*cdf0e10cSrcweir <embed href="text/shared/guide/data_addressbook.xhp#data_addressbook"/> 94*cdf0e10cSrcweir </section> 95*cdf0e10cSrcweir </body> 96*cdf0e10cSrcweir</helpdocument>