TControl.ParentToClient function
Converts the specified client coordinates on a parent control to the client coordinates for the control instance.
Declaration
function ParentToClient(const Point: TPoint; AParent: TWinControl=Nil)
: TPointDescription
Point contains the client coordinates relative the parent control
AParent. If AParent is not assigned (
Nil), the value in the
Parent property is used as the value for the argument.
ParentToClient calls the IsParentOf method in AParent to determine
if the current control is hosted on AParent. An EInvalidOperation
exception is raised if the IsParentOf method returns False.
The return value is a TPoint instance with client coordinates for
the control relative to the client coordinates on AParent.
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
