Applet Schema
IMAGEBOX Element
See Also  Send comments on this topic.
Applet Schema : IMAGEBOX Element

Glossary Item Box

Description

Used to define an ImageBox control in a form.

Diagram

IMAGEBOX Element

Overview

IMAGEBOX
Used to define an ImageBox control in a form.
height required xs:int
The height of the image box.
width required xs:int
The width of the image box.
x required xs:int
The x coordinate of the upper left corner of the image box.
y required xs:int
The y coordinate of the upper left corner of the image box
border optional Restriction of xs:string
Specifies whether the image box has a border.
clickaction optional Restriction of xs:string
The action taken when the user taps the image box.
defaultvalue optional xs:string
A simple expression that specifies the default value of the image box.
field optional xs:string
The field of the shapefile's DBF table that is linked to the image box.
group optional Restriction of xs:string
Specifies whether the image box starts a new group of controls.
name optional xs:string
Name of the ImageBox control. Used to reference the control in scripts.
onchange optional
Specify the script to run when this event occurs.
onclick optional
Specify the script to run when this event occurs.
readonly optional Restriction of xs:string
Specifies whether the image box's value can be modified by the user.
required optional Restriction of xs:string
Specifies if the user must select an image in the image box.
tabstop optional Restriction of xs:string
Specifies whether the TAB key can be used to move the focus to the image box.

Attributes

NameTypeUseDefaultFixedDescription
heightxs:intrequired  The height of the image box.
widthxs:intrequired  The width of the image box.
xxs:intrequired  The x coordinate of the upper left corner of the image box.
yxs:intrequired  The y coordinate of the upper left corner of the image box
borderRestriction of xs:stringoptionalfalse Specifies whether the image box has a border.
clickactionRestriction of xs:stringoptionalauto The action taken when the user taps the image box.
defaultvaluexs:stringoptional  A simple expression that specifies the default value of the image box.
fieldxs:stringoptional  The field of the shapefile's DBF table that is linked to the image box.
groupRestriction of xs:stringoptional  Specifies whether the image box starts a new group of controls.
namexs:stringoptional  Name of the ImageBox control. Used to reference the control in scripts.
onchange optional  Specify the script to run when this event occurs.
onclick optional  Specify the script to run when this event occurs.
readonlyRestriction of xs:stringoptionalfalse Specifies whether the image box's value can be modified by the user.
requiredRestriction of xs:stringoptionalfalse Specifies if the user must select an image in the image box.
tabstopRestriction of xs:stringoptionaltrue Specifies whether the TAB key can be used to move the focus to the image box.

Examples

ArcPad layer file (*.apl) with an edit form.

Restrictions

The following attributes can only be used in edit and identify forms. They cannot be used in general forms:; field; required

Source

<xs:element name="IMAGEBOX" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>Used to define an ImageBox control in a form.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute use="required" name="height" type="xs:int">
      <xs:annotation>
        <xs:documentation>The height of the image box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute use="required" name="width" type="xs:int">
      <xs:annotation>
        <xs:documentation>The width of the image box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="x" type="xs:int" use="required">
      <xs:annotation>
        <xs:documentation>The x coordinate of the upper left corner of the image box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="y" type="xs:int" use="required">
      <xs:annotation>
        <xs:documentation>The y coordinate of the upper left corner of the image box</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="border" default="false">
      <xs:annotation>
        <xs:documentation>Specifies whether the image box has a border.</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:attribute name="clickaction" default="auto">
      <xs:annotation>
        <xs:documentation>The action taken when the user taps the image box.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="auto" />
          <xs:enumeration value="camera" />
          <xs:enumeration value="file" />
          <xs:enumeration value="none" />
          <xs:enumeration value="picture" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="defaultvalue" type="xs:string">
      <xs:annotation>
        <xs:documentation>A simple expression that specifies the default value of the image box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="field" type="xs:string">
      <xs:annotation>
        <xs:documentation>The field of the shapefile's DBF table that is linked to the image box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="group">
      <xs:annotation>
        <xs:documentation>Specifies whether the image box starts a new group of controls.</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:attribute name="name" type="xs:string">
      <xs:annotation>
        <xs:documentation>Name of the ImageBox control. Used to reference the control in scripts.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="onchange">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="onclick">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="readonly" default="false">
      <xs:annotation>
        <xs:documentation>Specifies whether the image box's value can be modified by the user.</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:attribute name="required" default="false">
      <xs:annotation>
        <xs:documentation>Specifies if the user must select an image in the image box.</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:attribute name="tabstop" default="true">
      <xs:annotation>
        <xs:documentation>Specifies whether the TAB key can be used to move the focus to the image box.</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.