resizing effect on TitleWindow Flex
I would like to know how I can add maximize and restore functionalities to a Flex Titl开发者_如何学JAVAeWindow.
I used something like this
<s:Button label="maximize panel" click="Panel1.height = 300;Panel1.width = 300"/>
where Panel1 is the id for TitleWindow
but there was not effect for it.
I would also like to know how to add buttons on the titlewindow title( so that I can include buttons for maximize and minimize).
It's pretty simple actually:
<fx:Declarations>
<s:Resize id="ohyea" widthTo="300" heightTo="300" duration="500" target="{Panel1}"/>
</fx:Declarations>
<s:Button label="maximize panel" click="ohyea.play();"/>
You can do the same thing in the title window, just change the target to "this".
精彩评论