summaryrefslogtreecommitdiff
path: root/helpcontent2/source/text/shared/guide/formfields.xhp
blob: 965ba1056cd4e7448b1d878491413ccf849789ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="UTF-8"?>
<!--
 ***********************************************************************
 *
 *  OpenOffice.org - a multi-platform office productivity suite
 *
 *  $RCSfile: formfields.xhp,v $
 *
 *  $Revision: 1.9 $
 *
 *  last change: $Author: vg $ $Date: 2007-02-07 11:43:49 $
 *
 *  The Contents of this file are made available subject to
 *  the terms of GNU Lesser General Public License Version 2.1.
 *
 *
 *    GNU Lesser General Public License Version 2.1
 *    =============================================
 *    Copyright 2005 by Sun Microsystems, Inc.
 *    901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License version 2.1, as published by the Free Software Foundation.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public
 *    License along with this library; if not, write to the Free Software
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *    MA  02111-1307  USA
 *
 ************************************************************************
 -->
	
<helpdocument version="1.0">
<meta>
<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="2006-12-05T13:25:43">FPE: Deleted screenshots. Needs rework!
DEDR: Reworked</lastedited>
</history>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3149798"><bookmark_value>command buttons, see push buttons</bookmark_value>
<bookmark_value>controls;adding to documents</bookmark_value>
<bookmark_value>adding;push buttons</bookmark_value>
<bookmark_value>keys;adding push buttons</bookmark_value>
<bookmark_value>buttons;adding push buttons</bookmark_value>
<bookmark_value>press buttons, see push buttons</bookmark_value>
<bookmark_value>push buttons;adding to documents</bookmark_value>
</bookmark><comment>MW made "push buttons..." a two level entry</comment>
<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="CHG">You can use the Form Controls toolbar to add checkboxes, buttons, tables showing data records, and other controls to a document.</paragraph>
<paragraph role="heading" id="par_idN1077F" xml-lang="en-US" level="2" 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="CHG" oldref="6">Choose <item type="menuitem">View - Toolbars - Form Controls</item>.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3145345" xml-lang="en-US" l10n="CHG" oldref="7">On the Form Controls 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 to draw the button.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_idN107B2" xml-lang="en-US" l10n="NEW">Right-click the button and choose <emph>Control</emph>.</paragraph>
</listitem>
</list>
<list type="ordered" startwith="2">
<listitem>
<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="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">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</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_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_idN10837" xml-lang="en-US" l10n="NEW">Specify the properties for the form and then close the dialog.</paragraph>
</listitem>
</list>
<section id="relatedtopics">
<embed href="text/shared/guide/data_addressbook.xhp#data_addressbook"/>
</section>
</body>
</helpdocument>