ActivateWindow

Description:

baActivateWindow activates the specified window.

Platforms:

Windows and Macintosh

Usage:

Result = baActivateWindow( WinHandle )

Arguments:

Integer.
WinHandle is the handle of the window to activate. To activate the Director or Authorware window, use the baWinHandle() function.

Returns:

Integer.
Returns 1 if successful, otherwise 0.

Examples:

Director:
OK = baActivateWindow( baWinHandle() )

Authorware:
OK := baActivateWindow( baWinHandle() )
 

Notes:

Microsoft has introduced a change to the way this function operates under Win 98 and NT 4. If your user is presently typing in a window, then you can not force another window to become the active one. Instead, the button for that window will flash on the Taskbar to alert the user that a program needs attention.
 

See also:

baFindWindow