Sign in Join
FPDoc Onlineexperiment

TLCLReferenceComponent class

In unit LCLClasses

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

Declaration

pascal
TLCLReferenceComponent = class(TLCLComponent)

Inheritance

  1. TLCLReferenceComponent
  2. TLCLComponent
  3. TComponent
  4. TPersistent
  5. TObject

Descends from it: TCustomImageListResolution

Description

The widget is created by the LCL control whenever required, and its reference is stored in the FReferencePtr member. This reference is for internal use by the LCL control, and 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.

Modified in LCL version 4.0 to use the TLCLHandle type instead of the deprecated THandle type as the return value for the GetReferenceHandle method.

See also

Properties

HandleAllocatedpublicIf True, a Reference has been allocated for this component.
ReferenceAllocatedpublicIf True, a Reference has been allocated for this component.

Methods

CreateParamsprotectedOverride this method to supply specific widget creation parameters.
DestroyReferenceprotectedDestroys the reference object.
GetReferenceHandleprotectedOverride this method to return the Handle from the reference.
ReferenceCreatedprotectedCalled after the Reference is created.
ReferenceDestroyingprotectedCalled before the Reference is destroyed.
ReferenceNeededprotectedCreates the widgetset Reference for the class, if it has not already been allocated.
WSCreateReferenceprotectedTells the widgetset to create a Reference.
WSDestroyReferenceprotectedTells the widgetset to destroy the Reference.
DestroypublicDestructor for the class instance.

Inherited

From TLCLComponent (8)

DecLCLRefCount GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance RemoveAllHandlersOfObject WidgetSetClass WSRegisterClass

From TComponent (75)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle Create DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (36)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.