PDA

View Full Version : minimizing a window


stuckhere90
01-28-2008, 11:04 AM
I have seen some cool animations in open laszlo...one involves the window being "minimized" by having it be quickly, but noticably making the content area to a height of zero. Very cool.

My question is: In general, how do you minimize a window? How would you do the cool effect mentioned above? Just need help getting it started.



Thanks

senshi
01-28-2008, 12:37 PM
check out the docs for "<animatorgroup>" and "<animator>":


<window width="400" height="250" closeable="true" >
<animatorgroup name="anim" duration="600" start="false" process="simultanous" >
<animator attribute="height" to="40" />
<!--<animator attribute="opacity" to="0" />-->
</animatorgroup>

<handler name="onfinish" reference="anim" >
super.close();
</handler>

<method name="close" >
this.anim.doStart();
</method>
</window>