Description
Used to define a toolbar in an applet file (*.apa) or custom configuration file (ArcPad.apx).
Diagram
Overview
![](xsdimages/element.png) |
TOOLBAR
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
|
|
|
|
|
|
Attributes
Name | Type | Use | Default | Fixed | Description |
buttonsize | Restriction of xs:int | optional | 1 | | 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). |
caption | xs:string | optional | | | |
image | xs:string | optional | | | |
name | xs:string | optional | | | |
visible | Restriction of xs:string | optional | false | | |
Examples
Restrictions
If the name attribute value is "main", "browse", or "draw", then the caption and image attributes cannot be used.
Source
<xs:element name="TOOLBAR" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="SEPARATOR">
<xs:complexType />
</xs:element>
<xs:element maxOccurs="unbounded" name="TOOLBUTTON">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="MENUITEM">
<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>
|
See Also