[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Gets a valid parent form for the specified control.
Source position: forms.pp line 1972
function ValidParentForm( |
Control: TControl; |
TopForm: Boolean = True |
):TCustomForm; |
Control |
|
Control examined in the routine. |
TopForm |
|
True if all parent forms are located in the routine. |
Form instance that is the parent form for the control.
ValidParentForm is a TCustomForm function used to get a valid parent form for the control specified in the Control argument. TopForm indicates if the return value should contain the absolute root ancestor in the ancestry tree. ValidParentForm calls GetParentForm to get the return value for the routine.
ValidParentForm raises an EInvalidOperation exception with the message in sParentRequired when a valid parent form is not found for the specified control.
Raises an EInvalidOperation exception with the message in sParentRequired when a valid parent form is not found for the specified control.
Version 3.2 | Generated 2024-02-25 | Home |