WindowDepth

Description:

baWindowDepth gets the z-order depth of the specified window.

Platforms:

Windows

Usage:

Result = baWindowDepth( WinHandle )

Arguments:

Integer.
WinHandle is the handle to get the depth of.

Returns:

Integer.
Returns the depth, or 0 if WinHandle doesn't exist.

Examples:

Director:
depth = baWindowDepth( baWinHandle() )

Authorware:
depth := baWindowDepth( baWinHandle() )
 

Notes:

Only windows that are visible are counted in the depth. If a window's state is hidden, then it will be ignored by this function. Windows that are set as topmost or stay-on-top will be counted before normal windows - even if they are minimised.
 

See also:

baSetWindowDepth
baWindowToFront
baWindowToBack