Multipurpose Send Mail Form Builder

v2.0

 

Form design

Label

This is similar to Label component. In fact it is is based on Flex FormItem with ability to wrap text.

Properties Optional Value type Default value Meaning
type No String   Must be "Label"
name No String   Name of this Label object instance. It is similar to id field of Flex component. This property value must be unique in XML form file.
x No Int   X, Y position of Label on form
y No Int  
width No Int   Width, Height of Label on form
height No Int  
require Yes Boolean false Show required indicator (*) which can be used to indicate some text fields on form are required to input.
value Yes String "" Text displayed
font Yes XML Object   see next

where font property includes following sub attributes

Properties Optional Value type Default value Meaning
size Yes Int 10 Font size
name Yes String Default system font Font name in system font
bold Yes Boolean false Bold font
italic Yes Boolean false Italic font
color Yes String Black Font color

Example

<object>
   <type>Label</type>
   <name>lblFirstName</name>
   <x>0</x>
   <y>2</y>
   <width>80</width>
   <height>20</height>
   <require>true</require>
   <value>First name</value>
   <font>
      <bold>true</bold>
      <color>green</color>
      <italic>true</italic>
   </font>
</object>

<object>
   <type>Label</type>
   <name>lblGender</name>
   <x>0</x>
   <y>30</y>
   <width>100</width>
   <height>20</height>
   <value>How can we contact</value>
</object>

And the result

    

As you can see, long Label value will be wrapped based on its width.

Back | Table of Contents | Next

 

Copyright © 2009 Best Flash Solutions, Inc. All rights reserved | Site map