TControlWeakReference
Weak reference to an other
TControl
.Inheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TBaseObject | A base class for objects that can be used instead of TObject . |
3 | TControlWeakReference |
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
Scope | Visibility | Type | Name | Description |
---|---|---|---|---|
Instance | private | TTarget | FValue | |
Instance | private | TBaseObject | FReferrer |
Methods
Scope | Visibility | Result | Name | Description |
---|---|---|---|---|
Instance | private | SetValue(Value: TTarget) | ||
Instance | private | AttachToValue() | ||
Instance | private | DetachFromValue() | ||
Instance | public | Create(Referrer: TBaseObject) | ||
Instance | public | Destroy() | ||
Instance | public | TBoolean | HandleEvent(Event: TEvent) |