Determines whether the specified class can be a child control on the TPageControl instance.
Source position: comctrls.pp line 593
protected function TPageControl.ChildClassAllowed( |
ChildClass: TClass |
):Boolean; override; |
ChildClass |
|
Class reference used to create instances if the child control. |
True if an instance of ChildClass can be used as a child control.
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 Typhon IDE.
|
An individual page used in TPageControl. |
|
|
Checks whether the specified class type is allowed as a child control. |
|
|
The control within which the control is shown. |
|
|
Checks if this control can become a child of AParent. |
CT Web help |
CodeTyphon Studio |