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
|
<html dir="ltr"><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="assetid" CONTENT="HV01021461"><META NAME="lcid" CONTENT="1033"><title>button Element</title><link rel="stylesheet" type="text/css" href="office10.css"><script type="text/javascript" language="Javascript" src="ExpCollapse.js"></script><script type="text/javascript" language="JavaScript" src="inline.js"></script></head><body><p id="ExpandAllLine" class="ExpFav"><a href="#" onclick="ExpandAll()" onkeypress="ExpandAll()" class="DropDown"><img id="picHeader" border="0" src="expandtri.gif" alt="Show All"><span id="ExpandAll">Show All</span></a></p><h1>button Element</h1><div class="ofvbanav"><span class="ofvbanavreuse" id="seealso" onclick="toggleList()" onkeypress="toggleList()"></span><span class="ofvbanavreuse" id="parentelements" onclick="toggleList()" onkeypress="toggleList()"></span><span class="ofvbanavreuse" id="childelements" onclick="toggleList()" onkeypress="toggleList()"></span><span class="ofvbanavreuse" id="attributeslinks" onclick="toggleList()" onkeypress="toggleList()"></span></div><p>Defines a button that has an associated action.</p><h2>Type</h2><p><pre><code>xsd:complexType</code></pre></p><h2>Structure</h2><table>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr><td><b class="bterm"><a href="xsfatraction.htm" id="HV01021520" lcid=" ">action</a></b></td><td>(Optional attribute) Specifies an action of an editing component, using the syntax "NameOfEditingComponent::NameOfAction".</td></tr><tr>
<td><b class="bterm"><a href="xsfatrcaption_4.htm" id="HV01021531" lcid=" ">caption</a></b></td>
<td>(Optional attribute) Provides the caption displayed on the button.</td>
</tr>
<tr>
<td><b class="bterm"><a href="xsfatricon.htm" id="HV01021557" lcid=" ">icon</a></b></td>
<td>(Optional attribute) Provides a <a href="#" class="glossary" onclick="AppendPopup(this,'ofURL')" onkeypress="AppendPopup(this,'ofURL')">Uniform Resource Locator (URL)</a> to a bitmap (.bmp) or graphics interchange format (.gif) file, which is used for the button or menu item.</td>
</tr>
<tr><td><b class="bterm"><a href="xsfatrname_8.htm" id="HV01021581" lcid=" ">name</a></b></td><td>(Optional attribute) Used to associate the OnClick <a href="#" class="glossary" onclick="AppendPopup(this,'xdeventhandler')" onkeypress="AppendPopup(this,'xdeventhandler')">event handler</a> of the button with a scripting function.</td></tr><tr><td><b class="bterm"><a href="xsfatrshowIf.htm" id="HV01021603" lcid=" ">showIf</a></b></td><td>(Optional attribute) Specifies the editing context of the button.</td></tr><tr>
<td><b class="bterm"><a href="xsfatrtooltip.htm" id="HV01021612" lcid=" ">tooltip</a></b></td>
<td>(Optional attribute) Provides the ScreenTip text to be used for the button.</td>
</tr>
<tr>
<td><b class="bterm"><a href="xsfatrxmlToEdit.htm" id="HV01021626" lcid=" ">xmlToEdit</a></b></td>
<td>(Optional attribute) Specifies the name of an <b class="bterm"><a href="xsfelmxmlToEdit.htm" id="HV01021519" lcid=" ">xmlToEdit</a></b> element, for which the button is used.</td>
</tr>
</table><h2>Remarks</h2><p>The <b class="bterm">button</b> element is an optional element of the <b class="bterm"><a href="xsfelmtoolbar.htm" id="HV01021506" lcid=" ">toolbar</a></b>, <b class="bterm"><a href="xsfelmmenu.htm" id="HV01021489" lcid=" ">menu</a></b>, and <b class="bterm"><a href="xsfelmmenuArea.htm" id="HV01021490" lcid=" ">menuArea</a></b> elements. Each button element declaration corresponds to a button on a toolbar, menu, or menu area item, and each button has an action (or command) associated with it.</p><h2><a id="#example" name="#example">Example</a></h2><p>The following is an example of the <b class="bterm">button</b> element:</p><pre><code><xsf:menuArea name="msoInsertMenu">
<xsf:menu caption="&amp;Section">
<xsf:<b class="bterm">button</b> action="xCollection::insert" xmlToEdit="CD_10"
caption="CD" showIf="always"></xsf:button>
<xsf:<b class="bterm">button</b> action="xCollection::insert" xmlToEdit="Track_14"
caption="Track" showIf="always"></xsf:button>
<xsf:<b class="bterm">button</b> action="xOptional::insert" xmlToEdit="Label_16"
caption="Label"></xsf:button>
</xsf:menu>
</xsf:menuArea></code></pre><script type="text/javascript" language="JScript" src="ofvbanl.js"></script><span id="ofVBAISpan" class="ofvbaispan"><iframe id="ofVBAIFrame" frameborder="0" marginheight="0" marginwidth="4" scrolling="auto" width="100%" src="../links/xsfelmbutton_l.htm"></iframe></span><center><a href="XMLSchemaCopyright_HV01147162.htm">©2003-2004 Microsoft Corporation. All rights reserved.</a>
Permission to copy, display and distribute this document is available at: <a
href="http://r.office.microsoft.com/r/rlidAWSContentRedir?AssetID=XT010988631033&CTT=11&Origin=HV011232471033"
target="_new">http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp</a></center></body></html>
|