FMX.Platform.IFMXMultiDisplayService.DisplayFromPoint
Delphi
function DisplayFromPoint(const Handle: TWindowHandle; const Point: TPoint): TDisplay;
C++
virtual Fmx::Types::TDisplay __fastcall DisplayFromPoint(Fmx::Types::TWindowHandle* const Handle, const System::Types::TPoint &Point) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Platform.pas FMX.Platform.hpp |
FMX.Platform | IFMXMultiDisplayService |
Description
Declares the method to retrieve the display containing the specified Point
point.
Implementations of DisplayFromPoint return the TDisplay display containing the specified Point
point. Point
coordinates are relative to the form having the specified Handle
window handle.
If any mouse button or the mouse wheel is pressed, then DisplayFromPoint returns the display containing the mouse cursor and the form having the specified Handle
window handle. (The specified Point
is ignored). If the mouse cursor and the form having the specified Handle
window handle are on different displays, then the mouse cursor is ignored and DisplayFromPoint returns the TDisplay display containing the specified Point
point.