Monitor

Qualified name: delphivcl.Monitor

class Monitor

Bases: Object

TMonitor represents a monitor on which an application runs. TMonitor represents a monitor that displays the user interface of an application. It introduces properties to describe the dimensions of a single monitor. In addition, the Primary property distinguishes the primary property from other monitors on the system. When writing multi-monitor applications, use TMonitor to help lay out forms and dialogs so that they are not split over several monitors. Applications do not create instances of TMonitor. Instead, monitor components for all available monitors are listed by the Monitors property of the global Screen variable. The global Screen variable also provides global information about the monitors on which the application runs, such as screen resolution, available fonts, and so on.

Methods

Free

Frees the Wrapped Delphi Object

InheritsFrom

Returns True if Delphi Object is or inherits from ClassName

SetProps

Sets several properties in one call

ToList

If the object is a container (TStrings, TComponent...), it returns the content of the sequence as a Python list object.

ToTuple

If the object is a container (TStrings, TComponent...), it returns the content of the sequence as a Python tuple object.

Attributes

BoundsRect

Indicates the dimensions of the monitor in pixels.

ClassName

Returns the TObject.ClassName

Handle

Indicates the Windows handle for the monitor.

Height

Indicates the vertical size of the monitor in pixels.

Left

Indicates the logical position of the left edge of the monitor.

MonitorNum

Specifies the index of the monitor in the global screen object's Monitors list.

PixelsPerInch

Embarcadero Technologies does not currently have any additional information.

Primary

Indicates whether this is the primary monitor.

Top

Indicates the logical position of the top edge of the monitor.

Width

Indicates the horizontal size of the monitor in pixels.

WorkareaRect

Indicates the dimensions of the usable area on the monitor.

BoundsRect

Indicates the dimensions of the monitor in pixels.

Free()

Frees the Wrapped Delphi Object

Handle

Indicates the Windows handle for the monitor.

Height

Indicates the vertical size of the monitor in pixels.

InheritsFrom(ClassName)

Returns True if Delphi Object is or inherits from ClassName

Left

Indicates the logical position of the left edge of the monitor.

MonitorNum

Specifies the index of the monitor in the global screen object’s Monitors list.

PixelsPerInch

Embarcadero Technologies does not currently have any additional information.

Type:

int

Primary

Indicates whether this is the primary monitor.

SetProps(prop1=val1, prop2=val2...)

Sets several properties in one call

ToList()

If the object is a container (TStrings, TComponent…), it returns the content of the sequence as a Python list object.

ToTuple()

If the object is a container (TStrings, TComponent…), it returns the content of the sequence as a Python tuple object.

Top

Indicates the logical position of the top edge of the monitor.

Width

Indicates the horizontal size of the monitor in pixels.

WorkareaRect

Indicates the dimensions of the usable area on the monitor.