Unit 'ComCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TCoolBand.Create

Constructor for the class instance.

Declaration

Source position: comctrls.pp line 2532

public constructor TCoolBand.Create(

  aCollection: TCollection

); override;

Arguments

aCollection

  

Collection which owns the items in the class instance.

Description

Create is the overridden constructor for the class instance. Create sets the default values for properties in the collection item, including:

Create calls the inherited method using aCollection as the owner of the collection item. An exception is raised if ACollection is not a TCoolBands descendant.

The internal TCoolBar reference in the class instance is set to the reference used in aCollection.

Create allocates resource needed for the Bitmap property, and sets its OnChange event handler to the InvalidateCoolBar method.



CT Web help

CodeTyphon Studio