Vcl.Forms.TScreen.MonitorFromPoint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function MonitorFromPoint(const Point: TPoint;  MonitorDefault: TMonitorDefaultTo = mdNearest): TMonitor;

C++

TMonitor* __fastcall MonitorFromPoint(const System::Types::TPoint &Point, TMonitorDefaultTo MonitorDefault = (TMonitorDefaultTo)(0x0));

Properties

Type Visibility Source Unit Parent
function public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TScreen

Description

Returns the monitor where a specified point is located.

Call MonitorFromPoint determine the monitor where a specified point is located.

Point is the coordinates of the point to locate. It is in pixels relative to the upper-left corner of the primary monitor.

MonitorDefault indicates how to select a monitor when the point does not fall clearly on a single monitor.

See Also