176
Building Tag Editors
Defining a Tag Editor is composed of three tasks:
1
Layout the dialog box controls.
2
Specify how to populate the controls with tag attributes.
3
Define the tag generation template.
Open the \Extensions\TagDefs\mytag.vtm file to see how these tasks are coded. The
following section explains how to create the editor file.
Defining controls
The
control
identical in definition, the difference being that only
capability to contain
A Panel control is a good example of a control that can be a container containing a
control, such as a label or a text box:
<tag>
<editorlayout height=50 width=200>
<container
</container>
</editorlayout>
</tag>
You can name the above template mytag.vtm and test it by attempting to edit an
empty
The example displays a single Panel container containing
controls. Only a few controls can be containers:
TabDialog
controls.
TabPage
Panel
regular or container controls.
The control represented by a
attribute, the
The
anchor
positioned. The anchor can be specified as the name of any control that was already
laid down. The corner specifies the corner of the anchor control to be used for
positioning. The possible values are
then specify the pixel offset from the
Chapter 13 Customizing the Development Environment
and
tags represent graphical controls. The tags are nearly
container
tags.
control
name="Panel1" type="Panel" width=150 height=50>
<control name="lblCode" type="Label" caption="Code" down=20
right=20 width=70/>
<control name="txtCode" type="TextBox" anchor="lblCode"
<corner="NE" width="30"/>
tag.
mytag
A tab dialog control capable of containing
Only used inside a
A general purpose panel container control which can contain any
control
and
width
height
and
attributes determine the point relative to which the control is
corner
container
container control.
TabDialog
or a
tag is defined by the
container
attributes determine the size.
,
,
, and
. The
NE
NW
SE
SW
control.
anchor
tags have the
and
Label
TextBox
container
TabPage
type
and
attributes
down
right
Need help?
Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?