Sign in Join
FPDoc Onlineexperiment

TControl.CheckNewParent procedure

Member of TControlpublicIn unit Controls

Checks if this control can become a child of AParent.

Declaration

pascal
procedure CheckNewParent(AParent: TWinControl); virtual

Arguments

AParent

The new Parent for this control.

Description

This check is performed during SetParent. It calls CheckChildClassAllowed and whether AParent is the current class instance (Self).

Errors

An EInvalidOperation occurs when any test fails.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.