Home Flex Change panel height, width and title



Change panel height, width and title
Posted on: April 3, 2006 at 12:00 AM
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>


  

 

Related Tags for Change panel height, width and title:


More Tutorials from this section

Ask Questions?    Discuss: Change panel height, width and title  

Post your Comment


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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.