Form Layout Container

Form container is used to lay the child elements as form elements.

Ads

Form Layout Container

     

Form container is used to lay the child elements as form elements. Using Form container you can create label also for input fields. FormHeader and FormItem components can be used within the Form container. FormHeader can be used for adding header information. You will put components like input box within FormItem. Label for the item can also be specified in label attribute of FormItem component.

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">

<mx:Form width="300" height="150" backgroundColor="white">

<mx:FormHeading label="Add Article"/>

<mx:FormItem label="Article Name:">

<mx:TextInput/>

</mx:FormItem>

<mx:FormItem label="Author Name:">

<mx:TextInput/>

</mx:FormItem>

<mx:FormItem>

<mx:Button label="Submit"/>

</mx:FormItem>

</mx:Form>

</mx:Application>

Output:



Download the code:
FormLayoutContainer.zip

Advertisements

Share on Google+Share on Google+

Form Layout Container

Posted on: November 14, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: Form Layout Container  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads