[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Performs a recursive search for the first Parent of type TCustomForm.
Source position: forms.pp line 1970
function GetFirstParentForm( |
Control: TControl |
):TCustomForm; |
Control |
|
TControl instance where the search for a parent form is started. |
The first custom form instance found by ascending the control hierarchy.
GetFirstParentForm is a TCustomForm function used to find the first form instance in the Parents for the specified Control. GetFirstParentForm calls the GetParentForm routine to get the form instance used as the return value. The return value is Nil when Control has not been assigned, or a form is not found in GetParentForm.
GetFirstParentForm is called from the IntfGetDropFilesTarget method in TWinControl, and from routines which handle accelerator keys for widgetset classes.
|
Gets the form instance for the specified Control. |
Version 3.2 | Generated 2024-02-25 | Home |