You can just set the height property of an internal container to 0.

Here is a sample:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
        
        <mx:Panel title="Hello World" id="p">
                <mx:VBox id="vBox" height="150">
                        <mx:Label text="Just"/>
                        <mx:Label text="Some"/>
                        <mx:Label text="Filler"/>
                        <mx:Label text="for the"/>
                        <mx:Label text="Panel"/>        
                </mx:VBox>
        </mx:Panel>
        
        <mx:Button click="vBox.height=150" label="Open"/>
        <mx:Button click="vBox.height=0" label="Close"/>
        
</mx:Application>

Rich




On 10/27/06, jnewport <[EMAIL PROTECTED]> wrote:
> I found this link on dashboardSPY.
>
> http://adb.crowecs.com/flex/activeDashboard/dashBoard.mxml?versionChecked=true
>
>
> Does anyone know how they collapse the panels?  I am assuming it is by
> removing the contents of the panel, thus allowing the panel to
> collapse because its empty?  Does anyone know of an example?
>
> If you remove the child components from the panel does that kill it
> for good, meaning when you bring it back do you have to call an
> function to repopulate the child components of panel?  Or will they
> repopulate on their own when brought back?
>
> Thanks in advance?
>
> J
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>


-- 
Rich Tretola
<mx:EverythingFlex/>
http://www.EverythingFlex.com


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to