TWinControl.ChildClassAllowed function
Checks whether the specified class type is allowed as a child control.
Declaration
function ChildClassAllowed(ChildClass: TClass): Boolean; overrideArguments
ChildClass | Class type examined in the method. |
Function result
True when ChildClass is allowed in Controls.Description
ChildClassAllowed is an overridden method in TWinControl used to
determine if instances of the class type in ClassType are allowed as child
controls. Returns
True if the specified class type is allowed as a
child control in the Controls property.
In TWinControl, the return value is True when ChildClass has been assigned (not Nil) and the class type is derived from TControl.
ChildClassAllowed does not call the inherited method which always returns False.
ChildClassAllowed is called from the CheckChildClassAllowed method in TControl.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
