Files
help/helpcontent2/source/text/shared/guide/formfields.xhp
2004-08-18 09:59:46 +00:00

118 lines
6.9 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<!--***********************************************************************
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 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
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRUNTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRUNTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc..
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************-->
<helpdocument version="1.0">
<meta>
<topic id="textsharedguideformfieldsxml" indexer="include" status="DEPRECATED">
<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>
</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>
<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>
</variable></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>
</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>
</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>
</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>
</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">
<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>
</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>
</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>
</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>
</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>
</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>
</body>
</helpdocument>