Description
The pareent element for all ArcPad toolbars.
Diagram
Overview
![](xsdimages/element.png) |
TOOLBARS
The pareent element for all ArcPad toolbars.
![](xsdimages/sequence.png) |
Sequence
![](xsdimages/element.png) |
TOOLBAR 1..∞
Used to define a toolbar in an applet file (*.apa) or custom configuration file (ArcPad.apx).
![](xsdimages/attributeref.png) |
buttonsize optional Restriction of xs:int
Specifies the scale factor for the size of toolbar buttons on this toolbar. For example, a value of 2 makes toolbar buttons twice as large as the standard size (16X16). This setting overrides the buttonsize attribute in the DISPLAY element (in ArcPadPrefs.apx).
|
![](xsdimages/attributeref.png) |
caption optional xs:string
|
![](xsdimages/attributeref.png) |
image optional xs:string
|
![](xsdimages/attributeref.png) |
name optional xs:string
|
![](xsdimages/attributeref.png) |
visible optional Restriction of xs:string
|
![](xsdimages/sequence.png) |
Sequence
![](xsdimages/element.png) |
SEPARATOR 1..∞
Used to specify a separator between tools in a custom toolbar.
|
![](xsdimages/element.png) |
TOOLBUTTON 1..∞
Used to define a custom toolbutton or specify a built-in toolbutton in a toolbar.
![](xsdimages/attributeref.png) |
command optional xs:string
|
![](xsdimages/attributeref.png) |
image optional xs:string
|
![](xsdimages/attributeref.png) |
name optional xs:string
|
![](xsdimages/attributeref.png) |
shortcut optional xs:string
|
![](xsdimages/attributeref.png) |
onclick optional xs:string
Specify the script to run when this event occurs.
|
![](xsdimages/attributeref.png) |
onpointerdown optional xs:string
Specify the script to run when this event occurs.
|
![](xsdimages/attributeref.png) |
onpointermove optional xs:string
Specify the script to run when this event occurs.
|
![](xsdimages/attributeref.png) |
onpointerup optional xs:string
Specify the script to run when this event occurs.
|
![](xsdimages/attributeref.png) |
prompt optional xs:string
|
![](xsdimages/attributeref.png) |
tooltip optional xs:string
|
![](xsdimages/sequence.png) |
Sequence
![](xsdimages/element.png) |
MENUITEM 1..∞
Used to define a custom toolbutton or specify a built-in toolbutton in a pull-down menu.
![](xsdimages/attributeref.png) |
caption optional xs:string
|
![](xsdimages/attributeref.png) |
command optional xs:string
|
![](xsdimages/attributeref.png) |
image optional xs:string
|
![](xsdimages/attributeref.png) |
name optional xs:string
|
![](xsdimages/attributeref.png) |
onclick optional xs:string
Specify the script to run when this event occurs.
|
![](xsdimages/attributeref.png) |
onpointerdown optional xs:string
Specify the script to run when this event occurs.
|
![](xsdimages/attributeref.png) |
onpointermove optional xs:string
Specify the script to run when this event occurs.
|
![](xsdimages/attributeref.png) |
onpointerup optional xs:string
Specify the script to run when this event occurs.
|
![](xsdimages/attribute.png) |
promote optional Restriction of xs:string
|
![](xsdimages/attributeref.png) |
prompt optional xs:string
|
![](xsdimages/attributeref.png) |
shortcut optional xs:string
|
|
|
|
|
|
![](xsdimages/element.png) |
![](xsdimages/attributeref.png) |
backgroundcolor optional xs:string
|
![](xsdimages/attributeref.png) |
horizalignment optional Restriction of xs:string
|
![](xsdimages/attribute.png) |
style optional Restriction of xs:int
|
![](xsdimages/attribute.png) |
tintcolor optional xs:string
|
![](xsdimages/attributeref.png) |
transparency optional xs:double
|
![](xsdimages/sequence.png) |
Sequence
![](xsdimages/element.png) |
![](xsdimages/attributeref.png) |
command optional xs:string
|
![](xsdimages/attribute.png) |
useonce optional Restriction of xs:string
|
![](xsdimages/attribute.png) |
flip optional Restriction of xs:string
|
|
|
|
|
|
Examples
|
Copy Code |
<ArcPad>
<CONFIG>
<TOOLBARS>
<TOOLBAR name="main" visible="true"/>
<MENUITEM command="new"/>
<SEPARATOR/>
<MENUITEM command="openmap"/>
<MENUITEM command="savemap"/>
<MENUITEM command="savemapas"/>
<SEPARATOR/>
<MENUITEM command="mapproperties"/>
<SEPARATOR/>
<MENUITEM command="recentfiles"/>
<MENUITEM command="recentlayers"/>
<SEPARATOR/>
<MENUITEM command="exit"/>
</TOOLBUTTON>
</TOOLBAR>
<TOOLBAR name="tlbCustomToolBar1" caption="Tools" visible="true" image="">
<TOOLBUTTON name="tlAddPole" shortcut="" image="Street_Light.ico" onpointerdown="Call AddPole" tooltip="Add Pole" prompt="Add a new pole to the Poles layer"/>
</TOOLBAR>
</TOOLBARS>
</CONFIG>
<SCRIPT src="ArcPad.vbs" language="vbscript"/>
</ArcPad>
|
Source
<xs:element name="TOOLBARS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType>
<xs:sequence>
<xs:element name="TOOLBAR" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="SEPARATOR">
<xs:complexType />
</xs:element>
<xs:element name="TOOLBUTTON" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="MENUITEM" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute ref="caption" />
<xs:attribute ref="command" />
<xs:attribute ref="image" />
<xs:attribute ref="name" />
<xs:attribute ref="onclick" />
<xs:attribute ref="onpointerdown" />
<xs:attribute ref="onpointermove" />
<xs:attribute ref="onpointerup" />
<xs:attribute default="false" name="promote">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="true" />
<xs:enumeration value="false" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute ref="prompt" />
<xs:attribute ref="shortcut" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute ref="command" />
<xs:attribute ref="image" />
<xs:attribute ref="name" />
<xs:attribute ref="shortcut" />
<xs:attribute ref="onclick" />
<xs:attribute ref="onpointerdown" />
<xs:attribute ref="onpointermove" />
<xs:attribute ref="onpointerup" />
<xs:attribute ref="prompt" />
<xs:attribute ref="tooltip" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute ref="buttonsize" />
<xs:attribute ref="caption" />
<xs:attribute ref="image" />
<xs:attribute ref="name" />
<xs:attribute ref="visible" />
</xs:complexType>
</xs:element>
<xs:element maxOccurs="1" name="MAPNAVIGATOR">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="8" name="TOOLBUTTON">
<xs:complexType>
<xs:attribute ref="command" />
<xs:attribute default="true" name="useonce">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="true" />
<xs:enumeration value="false" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute default="true" name="flip">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="true" />
<xs:enumeration value="false" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute default="SteelBlue" ref="backgroundcolor" />
<xs:attribute ref="horizalignment" />
<xs:attribute default="0" name="style">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0" />
<xs:maxInclusive value="3" />
<xs:pattern value="[\-+]?[0-9]+" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute default="0,20,40" name="tintcolor" type="xs:string" />
<xs:attribute default="0.0" ref="transparency" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
|
See Also