Toggle includeInLayout : Panel Layout « Container « Flex






Toggle includeInLayout

Toggle includeInLayout
           
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:VBox>
        <mx:Panel id="p1" title="Panel 1" backgroundColor="#FF0000" />
        <mx:Panel id="p2" title="Panel 2" backgroundColor="#00FF00" />
        <mx:Panel id="p3" title="Panel 3" backgroundColor="#0000FF" />
    </mx:VBox>
    <mx:HBox>
        <mx:Button label="Toggle Panel 2 in Layout" click="{p2.includeInLayout=!p2.includeInLayout;}" />
    </mx:HBox>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Use VerticalLayout to layout PanelUse VerticalLayout to layout Panel
2.Set Panel layout to horizontalSet Panel layout to horizontal
3.absolute layout with Panelabsolute layout with Panel
4.Panel with statusPanel with status
5.Put control into a PanelPut control into a Panel
6.Change SpanElement color whenever the user clicks on any location within that SpanElement's paragraphChange SpanElement color whenever the user clicks on any location within that SpanElement's paragraph
7.Three Panel GroupsThree Panel Groups
8.horizontalCenter and horizontalAlignhorizontalCenter and horizontalAlign
9.Use percentage to control the width and height of a PanelUse percentage to control the width and height of a Panel