Skip to main content
Version: Next

Find window

Find window ( left : Integer ; top : Integer {; windowPart : Integer} ) : Integer

ParameterTypeDescription
leftInteger→Global left coordinate
topInteger→Global top coordinate
windowPartInteger←3 if window is "touched", 0 otherwise
Function resultInteger←Window reference number
History
ReleaseChanges
14Modified
6Created

Description​

The Find window command returns (if any) the reference number of the first window “touched” by the point whose coordinates passed in left and top.

The coordinates must be expressed relative to the top left corner of the contents area of the application window (Windows) or to the main screen (Macintosh).

The windowPart parameter returns 3 if the window is touched, and 0 otherwise. (Compatibility note: Starting with 4D v14, the constants of the Find Window theme are obsolete).

See also​

Frontmost window
Next window

Properties​

Command number449
Thread safeno