[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TCustomForm.Monitor

The Monitor where the form is shown.

Declaration

Source position: forms.pp line 723

public property TCustomForm.Monitor : TMonitor
  read GetMonitor;

Description

Monitor is a read-only TMonitor property which contains the monitor where the form was displayed. Monitor defaults to the TMonitor instance for the Parent form when it has been assigned.

When the parent form has not been assigned, and a handle exists for the form instance, the widgetset class is notified of the current coordinates for the form. The MonitorFromWindow method in the Screen singleton is called to locate the window closest to the the form (using its handle).

When neither a parent form nor a window handle are available, the MonitorFromPoint method in the Screen singleton is used to locate the form located at the Top and Left coordinates for the form instance.

See also

Screen

  

The TScreen singleton for the application.

TScreen

  

Provides information about the screen display in an application.

TMonitor

  

Provides information about a physical monitor.

GetParentForm

  

Gets the form instance for the specified Control.