![]() |
![]() ![]() ![]() |
acWin2kEffects as subproperty of AnimateOnShow and AnimateOnHide structures.
|
type
|
TacWin2kAnimationFlags = set of (afHorPositive, afHorNegative, afVerPositive, afVerNegative, afCenter, afSlide, afBlend);
|
|
property Flags: TacWin2kAnimationFlags;
|
Specifies the type of animation. This parameter can be one of the following values:
|
Value | Description
|
afHorPositive | Animates 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.
|
afHorNegative | Animates 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.
|
afVerPositive | Animates 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.
|
afVerNegative | Animates 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.
|
afCenter | Makes the window appear to collapse inward when form is hiding or expand outward if form is showing.
|
afSlide | Uses slide animation. By default, roll animation is used. This flag is ignored when used with afCenter.
|
afBlend | Uses 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.
|
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];
|
![]() |
AnimateOnShow and AnimateOnHide structures.
|