0 Replies Latest reply on Dec 4, 2007 8:24 AM by cpsany

    Panel Resize

    cpsany
      Hi

      i have three panel , top panel hav no problem , the other 2 panel need to be dependable , if the bottom panel is in minimized state and if i press the same to maximize the center panel must go minimized state that is the only problem i am facing on this resize

      below the code

      Thanks
      Sany



      main application


      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application
      xmlns:mx=" http://www.adobe.com/2006/mxml"
      xmlns:mccune="com.dougmccune.containers.*"
      xmlns:mccuneControls="com.dougmccune.controls.*"
      layout="absolute"

      xmlns:local="*" xmlns="*"
      backgroundGradientColors="[#eaeaea, #c4c4c4]"
      backgroundGradientAlphas="[1.0, 1.0]">
      <mx:Style source="css/style.css"/>
      <mx:VBox width="1010" height="56">
      <mx:Canvas id="header_can" >
      <mx:Image source="assets/header.jpg"/>
      </mx:Canvas>
      </mx:VBox>
      <mx:VBox id="vBox" width="211" height="475" x="0" y="57">
      <MinMaxPanel id="topPanel" title="My Presentation" width="200" height="150"
      maxWidth="200" maxHeight="150"
      showMaximize="false"

      >
      <!-- contents go here -->

      </MinMaxPanel>
      <MinMaxPanel id="botPanel" title="Keyword Search" width="200" height="100"
      maxWidth="200" maxHeight="100"
      showMaximize="false"
      minimized="newBotPanel.maximize(false)"


      >


      </MinMaxPanel>
      <MinMaxPanel id="newBotPanel" title="Slide Library" width="200" height="200"
      maxWidth="200" maxHeight="200"
      showMaximize="false"
      minimized="botPanel.maximize(false)"

      >
      <!-- contents go here -->

      </MinMaxPanel>

      </mx:VBox>
      </mx:Application>


      Component

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application
      xmlns:mx=" http://www.adobe.com/2006/mxml"
      xmlns:mccune="com.dougmccune.containers.*"
      xmlns:mccuneControls="com.dougmccune.controls.*"
      layout="absolute"

      xmlns:local="*" xmlns="*"
      backgroundGradientColors="[#eaeaea, #c4c4c4]"
      backgroundGradientAlphas="[1.0, 1.0]">
      <mx:Style source="css/style.css"/>
      <mx:VBox width="1010" height="56">
      <mx:Canvas id="header_can" >
      <mx:Image source="assets/header.jpg"/>
      </mx:Canvas>
      </mx:VBox>
      <mx:VBox id="vBox" width="211" height="475" x="0" y="57">
      <MinMaxPanel id="topPanel" title="My Presentation" width="200" height="150"
      maxWidth="200" maxHeight="150"
      showMaximize="false"

      >
      <!-- contents go here -->

      </MinMaxPanel>
      <MinMaxPanel id="botPanel" title="Keyword Search" width="200" height="100"
      maxWidth="200" maxHeight="100"
      showMaximize="false"
      minimized="newBotPanel.maximize(false)"


      >


      </MinMaxPanel>
      <MinMaxPanel id="newBotPanel" title="Slide Library" width="200" height="200"
      maxWidth="200" maxHeight="200"
      showMaximize="false"
      minimized="botPanel.maximize(false)"

      >
      <!-- contents go here -->

      </MinMaxPanel>

      </mx:VBox>
      </mx:Application>