User Guide

151
Populating dialog boxes with tag data
Once the layout of controls is completed one needs to define the way in which the
editor controls are populated when you are editing an existing tag. This is done in the
ATTRIBUTES block of the main tag editor template.
The
ATTRIBUTES block can contain ATTRIB and EVENT tags. The ATTRIB tag defines the
way tag attribute values get filled into the dialog controls.
<ATTRIBUTES>
<ATTRIB NAME="VALUE" CONTROL="txtName"/>
<ATTRIB NAME="TITLE" CONTROL="txtTitle"/>
<ATTRIB NAME="TITLE" CONTROL="txtTitle2"/>
<ATTRIB NAME="ALT" CONTROL="txtAltText"/>
<ATTRIB NAME="ALIGN" CONTROL="dropAlign"/>
</ATTRIBUTES>
The name attribute of the ATTRIB tag specifies the name of the attribute, while CONTROL
specifies which control the value of that attribute should be assigned to. Notice that
WIDTH Width of the control.
Can be specified in three ways:
In pixels (for example., WIDTH=200).
As the name of another control (for example.,
WIDTH="SomeControl"). In this case the width of the
specified control is used. The control must be already
positioned.
Set to maximum (WIDTH="MAXIMUM"). Stretches control to
the right boundary of its container.
HEIGHT Height of the control.
Can be specified in three ways:
In pixels (for example., HEIGHT =200).
As the name of another control (for example., HEIGHT
="SomeControl"). In this case the height of the specified
control is used. The control must be already positioned.
Set to maximum (HEIGHT ="MAXIMUM"). Stretches control to
the bottom boundary of its container.
LFWIDTH Width of the control used when users system is set to use large
fonts.
LFHEIGHT Height of the control used when users system is set to use large
fonts.
MAXWIDTHPADDING Used with WIDTH=MAXIMUM. Specifies the padding in pixels from
the containers right boundary.
MAXHEIGHTPADDING Used with HEIGHT=MAXIMUM. Specifies the padding in pixels from
the containers bottom boundary.
CONTAINER/CONTROL attributes (Continued)