Apr 21, 2010, 7:12 AM
[CLOSED] Rendering control dynamically at particular position
Hi,
I have a requirement wherby I need to create and place control at particular position. I get details about position in XML File.
I need to make use of attributes
<Property Name="top" Value="66" />
<Property Name="left" Value="437" />
<Property Name="width" Value="70" />
for placing controls at specific relative position of the container control.
Please let me know what coolite container control should i make use of and how can i make use of above mentioned attributes to place controls in specific order.
I have a requirement wherby I need to create and place control at particular position. I get details about position in XML File.
<MetaData></p>
<ControlTree UControlInstanceID="0" UControlValue=""></p>
<Control ControlUniqID="1001569" ControlType="Ulabel" ParentID="" TabIndex="5"></p>
<Property Name="alignment" Value="1" /></p>
<Property Name="caption" Value="City" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="left" Value="75" /></p>
<Property Name="reposaction" Value="" /></p>
<Property Name="tabindex" Value="5" /></p>
<Property Name="top" Value="1" /></p>
<Property Name="width" Value="120" /></p>
<ChildNode /></p>
</Control></p>
<Control ControlUniqID="1001570" ControlType="Ulabel" ParentID="" TabIndex="7"></p>
<Property Name="alignment" Value="1" /></p>
<Property Name="caption" Value="State" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="left" Value="255" /></p>
<Property Name="reposaction" Value="" /></p>
<Property Name="tabindex" Value="7" /></p>
<Property Name="top" Value="1" /></p>
<Property Name="width" Value="70" /></p>
<ChildNode /></p>
</Control></p>
<Control ControlUniqID="1001571" ControlType="Ulabel" ParentID="" TabIndex="11"></p>
<Property Name="alignment" Value="0" /></p>
<Property Name="caption" Value="Country" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="left" Value="351" /></p>
<Property Name="reposaction" Value="" /></p>
<Property Name="tabindex" Value="11" /></p>
<Property Name="top" Value="1" /></p>
<Property Name="width" Value="70" /></p>
<ChildNode /></p>
</Control></p>
<Control ControlUniqID="1001723" ControlType="Ulabel" ParentID="" TabIndex="9"></p>
<Property Name="alignment" Value="1" /></p>
<Property Name="caption" Value="Special" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="left" Value="462" /></p>
<Property Name="reposaction" Value="" /></p>
<Property Name="tabindex" Value="9" /></p>
<Property Name="top" Value="1" /></p>
<Property Name="width" Value="105" /></p>
<ChildNode /></p>
</Control></p>
<Control ControlUniqID="1001567" ControlType="Ucombobox" ParentID="" TabIndex="12"></p>
<Property Name="alignment" Value="0" /></p>
<Property Name="canedit" Value="True" /></p>
<Property Name="caneditexpr" Value="" /></p>
<Property Name="colwidth" Value="" /></p>
</p>
<Property Name="defaultvalue" Value="" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="isrequired" Value="True" /></p>
<Property Name="isrequiredexpr" Value="" /></p>
<Property Name="left" Value="339" /></p>
<Property Name="reposaction" Value="" /></p>
</p>
<Property Name="tabindex" Value="12" /></p>
<Property Name="tooltiptext" Value="Country of student''s birth" /></p>
<Property Name="top" Value="17" /></p>
<Property Name="width" Value="120" /></p>
<ChildNode /></p>
</Control></p>
<Control ControlUniqID="1001721" ControlType="Ucombobox" ParentID="" TabIndex="10"></p>
<Property Name="alignment" Value="0" /></p>
<Property Name="canedit" Value="True" /></p>
<Property Name="caneditexpr" Value="" /></p>
<Property Name="colwidth" Value="" /></p>
</p>
<Property Name="defaultvalue" Value="" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="isrequired" Value="False" /></p>
<Property Name="isrequiredexpr" Value="" /></p>
<Property Name="left" Value="494" /></p>
<Property Name="reposaction" Value="" /></p>
</p>
<Property Name="tabindex" Value="10" /></p>
<Property Name="tooltiptext" Value="" /></p>
<Property Name="top" Value="17" /></p>
<Property Name="width" Value="70" /></p>
<ChildNode /></p>
</Control></p>
<Control ControlUniqID="1001566" ControlType="Ucombobox" ParentID="" TabIndex="8"></p>
<Property Name="alignment" Value="0" /></p>
<Property Name="canedit" Value="True" /></p>
<Property Name="caneditexpr" Value="" /></p>
<Property Name="colwidth" Value="" /></p>
</p>
<Property Name="defaultvalue" Value="" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="isrequired" Value="True" /></p>
<Property Name="isrequiredexpr" Value="" /></p>
<Property Name="left" Value="209" /></p>
<Property Name="reposaction" Value="" /></p>
</p>
<Property Name="tabindex" Value="8" /></p>
<Property Name="tooltiptext" Value="" /></p>
<Property Name="top" Value="18" /></p>
<Property Name="width" Value="120" /></p>
<ChildNode /></p>
</Control></p>
<Control ControlUniqID="1001565" ControlType="Utextbox" ParentID="" TabIndex="6"></p>
<Property Name="alignment" Value="0" /></p>
<Property Name="canedit" Value="True" /></p>
<Property Name="caneditexpr" Value="" /></p>
</p>
<Property Name="defaultvalue" Value="" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="format" Value="" /></p>
<Property Name="inputmask" Value="" /></p>
<Property Name="isrequired" Value="True" /></p>
<Property Name="isrequiredexpr" Value="" /></p>
<Property Name="left" Value="77" /></p>
<Property Name="maxvalue" Value="" /></p>
<Property Name="minvalue" Value="" /></p>
<Property Name="reposaction" Value="" /></p>
<Property Name="tabindex" Value="6" /></p>
<Property Name="tooltiptext" Value="" /></p>
<Property Name="top" Value="19" /></p>
<Property Name="width" Value="127" /></p>
<ChildNode /></p>
</Control></p>
<Control ControlUniqID="1001568" ControlType="Ulabel" ParentID="" TabIndex="1"></p>
<Property Name="alignment" Value="1" /></p>
<Property Name="caption" Value="Birthplace:" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="left" Value="3" /></p>
<Property Name="reposaction" Value="" /></p>
<Property Name="tabindex" Value="1" /></p>
<Property Name="top" Value="20" /></p>
<Property Name="width" Value="66" /></p>
<ChildNode /></p>
</Control></p>
<Control ControlUniqID="1001572" ControlType="Ucombobox" ParentID="" TabIndex="14"></p>
<Property Name="alignment" Value="0" /></p>
<Property Name="canedit" Value="True" /></p>
<Property Name="caneditexpr" Value="" /></p>
<Property Name="colwidth" Value="250,0" /></p>
</p>
<Property Name="defaultvalue" Value="" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="isrequired" Value="False" /></p>
<Property Name="isrequiredexpr" Value="" /></p>
<Property Name="left" Value="128" /></p>
<Property Name="reposaction" Value="" /></p>
</p>
<Property Name="tabindex" Value="14" /></p>
<Property Name="tooltiptext" Value="Foreign exchange student or special education" /></p>
<Property Name="top" Value="62" /></p>
<Property Name="width" Value="140" /></p>
<ChildNode /></p>
</Control></p>
<Control ControlUniqID="1001578" ControlType="Ulabel" ParentID="" TabIndex="15"></p>
<Property Name="alignment" Value="1" /></p>
<Property Name="caption" Value="Voc Ed Sequence:" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="left" Value="292" /></p>
<Property Name="reposaction" Value="" /></p>
<Property Name="tabindex" Value="15" /></p>
<Property Name="top" Value="66" /></p>
<Property Name="width" Value="145" /></p>
<ChildNode /></p>
</Control></p>
<Control ControlUniqID="1001579" ControlType="Ucombobox" ParentID="" TabIndex="16"></p>
<Property Name="alignment" Value="0" /></p>
<Property Name="canedit" Value="True" /></p>
<Property Name="caneditexpr" Value="" /></p>
<Property Name="colwidth" Value="" /></p>
</p>
<Property Name="defaultvalue" Value="" /></p>
<Property Name="fontbold" Value="False" /></p>
<Property Name="forecolor" Value="0" /></p>
<Property Name="isrequired" Value="False" /></p>
<Property Name="isrequiredexpr" Value="" /></p>
<Property Name="left" Value="437" /></p>
<Property Name="reposaction" Value="" /></p>
</p>
<Property Name="tabindex" Value="16" /></p>
<Property Name="tooltiptext" Value="" /></p>
<Property Name="top" Value="66" /></p>
<Property Name="width" Value="70" /></p>
<ChildNode /></p>
</Control></p>
</ControlTree></p>
</MetaData></p>
I am able to render controls from XML. I need to make use of attributes
<Property Name="top" Value="66" />
<Property Name="left" Value="437" />
<Property Name="width" Value="70" />
for placing controls at specific relative position of the container control.
Please let me know what coolite container control should i make use of and how can i make use of above mentioned attributes to place controls in specific order.