Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Produce special effects when showing or hiding windows.

There are four types of animation: roll, slide, collapse or expand, and alpha-blended fade.

 

Syntax

 

n = Win_AnimateWindow(hWnd, dwTime, dwFlags)

 

Returns

 

Number. If the function succeeds, the return value is nonzero.

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle to the window to animate. The calling thread must own this window.

dwTime

Number

No

Specifies how long it takes to play the animation, in milliseconds. Typically, an animation takes 200 milliseconds to play.

dwFlags

Number

No

Specifies the type of animation. This parameter can be one or more of the following values. Note that, by default, these flags take effect when showing a window. To take effect when hiding a window, use %AW_HIDE and a logical OR operator with the appropriate flags.

%AW_SLIDEUses slide animation. By default, roll animation is used. This flag is ignored when used with %AW_CENTER.
%AW_ACTIVATEActivates the window. Do not use this value with %AW_HIDE.
%AW_BLENDUses a fade effect. This flag can be used only if hwnd is a top-level window.
%AW_HIDEHides the window. By default, the window is shown.
%AW_CENTERMakes the window appear to collapse inward if %AW_HIDE is used or expand outward if the %AW_HIDE is not used. The various direction flags have no effect.
%AW_HOR_POSITIVEAnimates the window from left to right. This flag can be used with roll or slide animation. It is ignored when used with %AW_CENTER or %AW_BLEND.
%AW_HOR_NEGATIVEAnimates the window from right to left. This flag can be used with roll or slide animation. It is ignored when used with %AW_CENTER or %AW_BLEND.
%AW_VER_POSITIVEAnimates the window from top to bottom. This flag can be used with roll or slide animation. It is ignored when used with %AW_CENTER or %AW_BLEND.
%AW_VER_NEGATIVEAnimates the window from bottom to top. This flag can be used with roll or slide animation. It is ignored when used with %AW_CENTER or %AW_BLEND.

 

Remarks

 

For additional info, please refer to MS documentation at: http://msdn.microsoft.com/en-us/library/ms632669(VS.85).aspx

 

Restrictions

 

See also

 

Examples

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software