Configuration Schema
TOOLBAR Element
See Also  Send comments on this topic.
Configuration Schema : TOOLBAR Element

Glossary Item Box

Description

Used to define a toolbar in an applet file (*.apa) or custom configuration file (ArcPad.apx).Used to define a toolbar in an applet file (*.apa) or custom configuration file (ArcPad.apx).

Diagram

TOOLBUTTON Element SEPARATOR Element Sequence TOOLBAR Element

Overview

TOOLBAR
Used to define a toolbar in an applet file (*.apa) or custom configuration file (ArcPad.apx).Used to define a toolbar in an applet file (*.apa) or custom configuration file (ArcPad.apx).
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).
caption optional xs:string
Displayed in the toolbar.
image optional
Path to a 16X16 .bmp image file, .ico icon file, or the name of a built-in image (for example, $bex).
name optional xs:string
Toolbar name. Used when referring to the toolbar in scripts.
visible optional Restriction of xs:string
Specifies if the toolbar is visible or hidden.
Sequence
SEPARATOR 1..∞
Used to specify a separator between tools in a custom toolbar.Used to specify a separator between tools in a custom toolbar.
TOOLBUTTON 1..∞
Used to define a custom toolbutton or specify a built-in toolbutton in a toolbar.

Attributes

NameTypeUseDefaultFixedDescription
buttonsizeRestriction of xs:intoptional  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).
captionxs:stringoptional  Displayed in the toolbar.
image optional  Path to a 16X16 .bmp image file, .ico icon file, or the name of a built-in image (for example, $bex).
namexs:stringoptional  Toolbar name. Used when referring to the toolbar in scripts.
visibleRestriction of xs:stringoptionaltrue Specifies if the toolbar is visible or hidden.

Remarks

visible Specifies if the toolbar is visible or hidden.

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:annotation>
    <xs:documentation>Used to define a toolbar in an applet file (*.apa) or custom configuration file (ArcPad.apx).</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element maxOccurs="unbounded" ref="SEPARATOR" />
      <xs:element maxOccurs="unbounded" ref="TOOLBUTTON" />
    </xs:sequence>
    <xs:attribute name="buttonsize">
      <xs:annotation>
        <xs:documentation>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).</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:int">
          <xs:minInclusive value="1" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="caption" type="xs:string">
      <xs:annotation>
        <xs:documentation>Displayed in the toolbar.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="image">
      <xs:annotation>
        <xs:documentation>Path to a 16X16 .bmp image file, .ico icon file, or the name of a built-in image (for example, $bex).</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string">
      <xs:annotation>
        <xs:documentation>Toolbar name. Used when referring to the toolbar in scripts.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="visible" default="true">
      <xs:annotation>
        <xs:documentation>Specifies if the toolbar is visible or hidden.</xs:documentation>
      </xs:annotation>
      <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>

See Also

© 2013 All Rights Reserved.