User Guide

Container/Control Examples 181
Container/Control Examples
This section contains example code for VTML containers and controls.
TabDialog
<container name="MainTabDialog" type="TabDialog" width=maximum
height=maximum>
<container name="TabPage1" type="TabPage" caption="TEXTAREA Tag">
... embedded controls
</container>
<container name="TabPage2" type="TabPage" caption="Content">
... embedded controls
</container>
</container>
TabPage
<container name="MainTabDialog" type="TabDialog" width=maximum
height=maximum>
<container name="TabPage1" type="TabPage" caption="TEXTAREA Tag">
... embedded controls
</container>
<container name="TabPage2" type="TabPage" caption="Content">
... embedded controls
</container>
</container>
Panel
<editorlayout height=225>
<container name="MainTabDialog" type="TabDialog" width=maximum
height=maximum>
<container name="TabPage1" type="TabPage" caption="mytag Tag">
<container name="Panel1" type="Panel" down=5 right=10
width="maximum" height=125>
<control name="lblSource" type="Label" caption="Source:"
down=17 right=10 width=50/>
<control name="txtSource" type="TextBox" anchor="lblSource"
corner="NE" width="maximum"/>
<control name="lblAlign" type="Label" caption="Align:"
anchor="lblSource" corner="SW" down=11 width=50/>
<control name="dropAlign">type="DropDown" anchor="lblAlign"
corner="NE" width=100>
<item value="TOP" caption="TOP" />
<item value="MIDDLE" caption="MIDDLE" selected/>
<item value="BOTTOM" caption="BOTTOM" />
</control>
</container>
<container name="Panel2" type="Panel" caption=" Panel 2 "
anchor="Panel1" corner="SW" down=5 width="maximum"