TControlWeakReference

Weak reference to an other TControl.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TBaseObjectA base class for objects that can be used instead of TObject.
3TControlWeakReference

Source

UserInterface.Control.WeakReference.pas (27)

Description

The reference to the control is weak in the sense that when the control is destroyed, Value is set to nil. Also, Referrer is automatically added to and removed from Value.Listeners whenever Value is updated.

Fields

ScopeVisibilityTypeNameDescription
InstanceprivateTTargetFValue
InstanceprivateTBaseObjectFReferrer

Methods

ScopeVisibilityResultNameDescription
InstanceprivateSetValue(Value: TTarget)
InstanceprivateAttachToValue()
InstanceprivateDetachFromValue()
InstancepublicCreate(Referrer: TBaseObject)
InstancepublicDestroy()
InstancepublicTBooleanHandleEvent(Event: TEvent)