GETMONITOR

From STX Wiki
Jump to navigationJump to search

This function returns the primary monitor if the parameter wnd is not given, otherwise it returns the monitor on which most of the window wnd is.

The Primary Monitor is a Windows concept. This is the monitor on which dialogs are centred by default and the application task bar appears. The Windows API (Application Programming Interface) returns the origin coordinates 0,0 for the upper left hand corner of the Primary monitor. This means that monitors left of the primary monitor have negative coordinates.

Usage:=

GETMONITOR [ wnd ]

Parameters:
wnd
The name of a display or dialog item.
Result:

If wnd was given, the monitor on which wnd is, otherwise, the Primary Monitor. Note that if there is more than one monitor on the system, the monitor range is 1 to numberOfMonitors (See MSG DESKTOP).

see also:

GETWINDOWPOS, SETWINDOWPOS, GETDESKTOP and MSG DESKTOP

Last Modified: 16.08.2007 13:06:29

Navigation menu

Personal tools