Converts the coordinates in the mouse message from SmallInt to LongInt values.
Source position: controls.pp line 1421
protected function TControl.GetMousePosFromMessage( |
const MessageMousePos: TSmallPoint |
):TPoint; |
MessageMousePos |
|
TSmallPoint instance with the values converted in the method. |
TPoint instance with the LongInt values for the mouse cursor position.
MessageMousePos is a TSmallPoint type with the mouse coordinates as SmallInt values. The return value is a TPoint instance with the LongInt values for the converted mouse coordinates.
If the control has a Width or Height that exceeds the maximum value for the SmallInt type, GetCursorPos is called to get the current mouse pointer position and the values are converted from screen to client coordinates. Otherwise, SmallPointToPoint is called to convert the values in MessageMousePos.
GetMousePosFromMessage provides coordinates using the type needed in MouseDown, MouseUp, MouseMove, and other mouse message handling methods in the control.
|
Converts absolute screen coordinates into client-relative coordinates. |
|
|
Invokes the OnMouseUp handler. |
|
|
Handles a mouse down event for the control. |
|
|
Handler for MouseMove events. |
|
|
Event handler for downward movement of mouse wheel. |
|
|
Event handler for upward movement of the mouse wheel. |
|
TSmallPoint |
||
TPoint |
CT Web help |
CodeTyphon Studio |