[Overview][Types][Classes][Index] Reference for unit 'LCLClasses' (#lcl)

TLCLReferenceComponent

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

Base class for all components having an associated widget.

Declaration

Source position: lclclasses.pp line 64

type TLCLReferenceComponent = class(TLCLComponent) end;

protected

  procedure CreateParams(); virtual;

  

Override this method to supply specific widget creation parameters.

  procedure DestroyReference;

  

Destroys the reference object.

  function GetReferenceHandle; virtual; abstract;

  

Override this method to return the Handle from the reference

  procedure ReferenceCreated; virtual;

  

Called after the Reference is created.

  procedure ReferenceDestroying; virtual;

  

Called before the Reference is destroyed

  procedure ReferenceNeeded;

  

Creates a Reference, if not already done.

  function WSCreateReference(); virtual;

  

Tells the widgetset to create a Reference.

  procedure WSDestroyReference; virtual;

  

Tells the widgetset to destroy the Reference.

public

  destructor Destroy; override;

  property Handle: TLCLIntfHandle; [r] deprecated ;

  

Get the Handle of this component.

  property HandleAllocated: Boolean; [r]

  property ReferenceAllocated: Boolean; [r]

  

If True, a Reference has been allocated for this component.

Inheritance

TLCLReferenceComponent

  

Base class for all components having an associated widget.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

Description

The widget is created by the LCL control whenever required, and its reference is stored in FReferencePtr. This reference is for internal use by the LCL control, not by application code.

This reference is different from the OS/window manager specific window Handle.

Applications only can send messages to a windowed control, using its window Handle.

See also

TLCLReferenceComponent.ReferenceNeeded

  

Creates a Reference, if not already done.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.