Home Flex Change panel height, width and title

Related Tutorials


 
 

Share on Google+Share on Google+

Change panel height, width and title

Advertisement
With the help of a button's click we can change the height, width , and title of a panel. In the given tutorial we will learn how to change all these attributes with a single click event.

Change panel height, width and title

     

 

With the help of a button's click we can change the height, width , and title of a panel. In the given tutorial we will learn how to change all these attributes with a single click event.

 

 

 

ButtonNPanel.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
  <mx:Panel title="Unchanged" id="pan">
  <mx:Button id="First" label="Change Title" click="pan.title='changed' ; pan.width=205;pan.height=250"/>
  </mx:Panel>
  </mx:Application>


  

 

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: April 3, 2006

Related Tutorials

Discuss: Change panel height, width and title  

Post your Comment


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