acAnimateWindow procedure
Advanced GDI routines
Return to Introduction  Previous page  Next page
Unit
acGraphics  

Declaration
procedure acAnimateWindow(Form: TForm; Time: Word; AnimationType: TacWin2kAnimationFlags; Open: Boolean);  

Description
The acAnimateWindow procedure produces special effects when showing or hiding windows. There are three types of animation: roll, slide and alpha-blended fade (blending works on Win2000 and higher).  
 
Use the acAnimateWindow in OnShow and OnClose events of your form. Also you can use acWin2kEffects component instead of this procedure.  

Parameters
FormPointer to the form to animate;  
TimeDuration of animation;  
AnimationTypeFlags specifying the type of the animation;  
OpenWhich effect to draw. Set Open parameter to True to show the opening effect and False to show the hiding effect.  

Requirements
Windows NT/2000: Requires Windows 2000 or later.  
Windows 95/98: Requires Windows 98 or later.  
 
tip If you call this function on Win95, or on Win98 with AW_BLEND parameter — nothing happends.  

See also
acWin2kEffects component and AnimateWindow function.