Sign in Join
FPDoc Onlineexperiment

TControl.ChildClassAllowed function

Member of TControlprotectedIn unit Controls

Returns True if the specified class is allowed for children of this control.

Declaration

pascal
function ChildClassAllowed(ChildClass: TClass): Boolean; virtual

Arguments

ChildClass

The class type for the child control.

Function result

True when the class is allowed as a child control.

Description

Always returns False in TControl. It is overridden in descendent classes to check whether the class reference in ChildClass is allowed for the control.

See also

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