CloseWindow

Description:

baCloseWindow closes the specified window.

Platforms:

Windows and Macintosh

Usage:

Result = baCloseWindow( WinHandle )

Arguments:

Integer.
WinHandle is the handle of the window to close.

Returns:

Integer.
Returns 1 if successful, otherwise 0.

Examples:

Director:
OK = baCloseWindow( WinHandle )

Authorware:
OK := baCloseWindow( WinHandle )
 

Notes:

On Macintosh, this function sends a Quit AppleEvent to the application. Some programs need to be made active before they will quit - you may need to do a baActiveWindow before using this function.
 

See also:

baCloseApp