Unit 'LCLClasses' Package
[Overview][Types][Classes][Variables][Index] [#lcl]

TLCLComponent

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

The base class for LCL components which have an associated widget.

Declaration

Source position: lclclasses.pp line 45

type TLCLComponent = class(TComponent)

protected

  class procedure WSRegisterClass; virtual;

  

Registers this component class with the current WidgetSet.

  class function GetWSComponentClass(); virtual;

  

This method allows descendants to override the WidgetSetClass.

public

  destructor Destroy; override;

  

Destructor for the class instance.

  class function NewInstance; override;

  

Creates and registers a new instance of the class, and initializes the WidgetSetClass property.

  procedure RemoveAllHandlersOfObject(); virtual;

  

Override this method to remove all references to notification handlers in AnObject.

  procedure IncLCLRefCount;

  

The number of references to this component.

  procedure DecLCLRefCount;

  

Decrements the reference counter for the LCL component.

  property LCLRefCount: Integer; [r]

  

The number of references to this component.

  property WidgetSetClass: TWSLCLComponentClass; [r]

  

The class type used to create instances of this component.

end;

Inheritance

TLCLComponent

  

The base class for LCL components which have an associated widget.

|

TComponent

|

TPersistent,IUnknown,IInterfaceComponentReference

|

TObject,IFPObserved

Description

TLCLComponent is a TComponent descendant which is used as the ancestor for many components in the Lazarus Component Library (LCL), including:

See also

TLCLReferenceComponent

  

Base class for all components having an associated widget with a handle.

TComponent