3 Replies Latest reply on Oct 22, 2006 9:45 AM by leotemp

    Panel Icons

    kruse
      Is it possible to add icons in the top right corener of a panel?

      I would like to create a panel with two icons in the top right corner emulating the functionality of minimizing an restoring a window.
      Is this possible?
      just like the FlexStore
        • 1. Re: Panel Icons
          leotemp Level 1
          Use TitleWindow component instead of panel component.
          • 2. Re: Panel Icons
            kruse Level 1
            How do I add icons to the top right corner?
            Besides the close Icon.
            • 3. Re: Panel Icons
              leotemp Level 1
              Create a canvas, Put a panel in the canvas, then put your buttons in the canvas, arange them using the canvas corodinates so they rest on top of your title window. This may not be the best way but it works, Example:

              <?xml version="1.0" encoding="utf-8"?>
              <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
              <mx:Canvas width="600" height="400" horizontalCenter="0" verticalCenter="0">
              <mx:Panel layout="absolute" left="0" top="0" right="0" bottom="0">
              </mx:Panel>
              <mx:Button label="X" right="10" top="3"/>
              <mx:Button label="[]" right="60" top="3"/>
              <mx:Button label="-" right="110" top="3"/>
              </mx:Canvas>



              </mx:Application>