FMX.Forms.TScreen.DisplayFromForm

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DisplayFromForm(const Form: TCommonCustomForm): TDisplay; overload;
function DisplayFromForm(const Form: TCommonCustomForm; const Point: TPoint): TDisplay; overload;
function DisplayFromForm(const Form: TCommonCustomForm; const Point: TPointF): TDisplay; overload;

C++

Fmx::Types::TDisplay __fastcall DisplayFromForm(TCommonCustomForm* const Form)/* overload */;
Fmx::Types::TDisplay __fastcall DisplayFromForm(TCommonCustomForm* const Form, const System::Types::TPoint &Point)/* overload */;
Fmx::Types::TDisplay __fastcall DisplayFromForm(TCommonCustomForm* const Form, const System::Types::TPointF &Point)/* overload */;

Properties

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

Description

Returns the TDisplay monitor where the specified Form is located.

Form specifies a TCommonCustomForm form.

Point specifies the pixel coordinates of a point relative to the specified Form.

DisplayFromForm, with only the Form parameter, returns the TDisplay monitor containing the specified TCommonCustomForm form.

DisplayFromForm, having the Point parameter, returns the TDisplay monitor containing the specified Point point, where Point coordinates are relative to the specified Form form. However, if any mouse button or the mouse wheel is pressed, then DisplayFromPoint returns the monitor containing both the mouse cursor and the specified Form form (the specified Point is ignored). If the mouse cursor and the Form form are on different monitors, then the mouse cursor is ignored and DisplayFromForm returns the TDisplay monitor containing the specified Point point.

See Also