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