TPageControl.ChildClassAllowed function
Determines whether the specified class can be a child control on the TPageControl instance.
Declaration
function ChildClassAllowed(ChildClass: TClass): Boolean; overrideArguments
ChildClass | Class reference used to create instances if the child control. |
Function result
True if an instance of ChildClass can be used as a child control.Description
ChildClassAllowed is an overridden method in
TPageControl. It re-implements the inherited method, and returns
True if the class reference in ChildClass is assigned and derived from
TTabSheet. The GetLCLCapability method in the widgetset class is also called
to check whether child controls are allowed for the native control on a given
platform.
ChildClassAllowed is called at run-time prior to using a control as the new value for the Parent property in one of its child control. It is also used at design-time when the component tree view or property editors are created/ updated in the Lazarus IDE.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
