Programmer Guide/Macro Library/GETMONITOR: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}__NOTOC__
==GETMONITOR==
 
This function returns the primary monitor if the parameter <var>wnd</var> is not given, otherwise it returns the monitor on which most of the window <var>wnd</var> is.
This function returns the primary monitor if the parameter <var>wnd</var> is not given, otherwise it returns the monitor on which most of the window <var>wnd</var> 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.
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:=====
====Usage:=====


<code>GETMONITOR [ <var>wnd</var> ]</code>
<code>GETMONITOR [ <var>wnd</var> ]</code>

Revision as of 16:01, 15 May 2012

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