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

TScreen.MonitorFromPoint

Find the monitor containing the given screen coordinates.

Declaration

Source position: forms.pp line 1133

public function TScreen.MonitorFromPoint(

  const Point: TPoint;

  MonitorDefault: TMonitorDefaultTo = mdNearest

):TMonitor;

Arguments

Point

  

The screen coordinates to find.

MonitorDefault

  

What to return when no monitor was found.

Function result

The monitor found.

See also

TScreen.MonitorFromRect

  

Find the monitor containing (most of) the given screen coordinates.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.