TCustomButton.ChildClassAllowed function
Checks whether the specified class type is allowed as a child control.
Declaration
function ChildClassAllowed(ChildClass: TClass): Boolean; overrideArguments
ChildClass | Not used in the current implementation. |
Function result
True when the widgetset class indicates child controls are allowed.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.
This description is the one of Controls.TWinControl.ChildClassAllowed.
See also
- Controls
- CheckChildClassAllowed
- Parent
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
