win2keffects Flags property
Return to Introduction  Previous page  Next page
Applies to
acWin2kEffects as subproperty of AnimateOnShow and AnimateOnHide structures.  

Declaration
type  
  TacWin2kAnimationFlags = set of (afHorPositive, afHorNegative, afVerPositive, afVerNegative, afCenter, afSlide, afBlend);  
 
property Flags: TacWin2kAnimationFlags;  

Description
Specifies the type of animation. This parameter can be one of the following values:  
ValueDescription     
afHorPositiveAnimates the window from left to right. This flag can be used with roll or slide animation. It is ignored when used with afCenter or afBlend flags.  
afHorNegativeAnimates the window from right to left. This flag can be used with roll or slide animation. It is ignored when used with afCenter or afBlend flags.  
afVerPositiveAnimates the window from top to bottom. This flag can be used with roll or slide animation. It is ignored when used with afCenter or afBlend flags.  
afVerNegativeAnimates the window from bottom to top. This flag can be used with roll or slide animation. It is ignored when used with afCenter or afBlend flags.  
afCenterMakes the window appear to collapse inward when form is hiding or expand outward if form is showing.  
afSlideUses slide animation. By default, roll animation is used. This flag is ignored when used with afCenter.  
afBlendUses a fade effect. This flag works in Win2000 or later (does not works in Win95/98/NT4!) and can be used only if you animating a top-level window.  

Short tutorial
To show the rolling effect from left to right set the Flags property to [afHorPositive]:  
acWin2kEffects1.AnimateOnHide.Flags := [afHorPositive];  
 
To show sliding effect instead of rolling, just add the afSlide flag. For example, to show sliding effect from upper-right corner to bottom-left corner, set the Flags property to [afHorNegative, afVerPositive, afSlide]:  
acWin2kEffects1.AnimateOnHide.Flags := [afHorNegative, afVerPositive, afSlide];  
 
To show the alpha-blending effect, set the Flags property to [afBlend]:  
acWin2kEffects1.AnimateOnHide.Flags := [afBlend];  
tip Alpha-blending works on Windows 2000 and later only. If you will try to use blending effect on Windows 98, nothing will happends. When you're using fade effect, you don't need to specify any others flags.  

See also
AnimateOnShow and AnimateOnHide structures.