A Panel container can contain many components. It include a title bar, a title, a border, and a content area for its children components.
A Panel container can contain many components. It include a title bar, a title, a border, and a content area for its children components.A Panel container can contain many components. It include a title bar, a title, a border, and a content area for its children components. It also contains a sub panel container according to requirement. The tag of Panel container is <s:Panel>. The default size of panel container is large enough to display its all children components. The minimum and maximum size of panel container is 131*127 pixels and 10000*10000 pixels respectively.
|
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s=" library://ns.adobe.com/flex/spark"xmlns:mx=" library://ns.adobe.com/flex/mx"> <fx:Script><![CDATA[ import mx.controls.Text; public var obj:Text=new Text();obj.text= "My name is:"+" "+txtinput.text+" "+txtinput1.text;from1.addChild(obj); obj1.text= "My Email-id is:"+" "+txtinput2.text;from1.addChild(obj1); obj2.text= "I live in:"+" "+txtinput3.text;from1.addChild(obj2); } // for Reset ............txtinput.text= "";txtinput1.text= "";txtinput2.text= "";txtinput3.text= "";obj.text= "";obj1.text= "";obj2.text= "";} ]]> </fx:Script> <s:Paneltitle=" Panel Container Example"color=" #990000"width=" 300"height=" 368"> <mx:Form id="from1" x="28" y="0"> <mx:FormHeading label="Personal Information" color="#0CBD07"/></s:Application> |
In this example you can see how we can use a Panel container. you can set the lable, width, height and other properties of it in a Panel container tag.
To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.