Sign in Join
FPDoc Onlineexperiment

GetDesignerForm function

In unit Forms

Gets the Form with the designer object for the specified control or persistent object.

Declaration

pascal
function GetDesignerForm(Control: TControl): TCustomForm

Description

GetDesignerForm is a TCustomForm function used to get the form instance with the designer object for the specified control or persistent object instance. The function is overloaded to allow use of a TControl or a TPersistent instance to locate the form.

The return value contains the top-most TCustomForm instance with a TIDesigner instance for the value in Control or APersistent. The return value is Nil when a form is not found which hosts the specified argument.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.