Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure Add(Src: TMtxComponent); | Add a reference of Src to Self and also a reference of Self to Src. |
| 2 | procedure Add(Src: TReferenceList; Event: TNotifyEvent; CompSrc: TObject); | Add a reference to Src to Self and also a reference of Self to Src. |
Overload 1: procedure Add(Src: TMtxComponent);
Add a reference of Src to Self and also a reference of Self to Src.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxComponent |
Result: stored in self (calling object)
Remarks:
Event that will be called, when the connected component is destroyed is the method TMtxComponent.RemoveReference. The parameter passed to the method will be the pointer of the component (and not of its TReferenceList) that is being destroyed.
Overload 2: procedure Add(Src: TReferenceList; Event: TNotifyEvent; CompSrc: TObject);
Add a reference to Src to Self and also a reference of Self to Src.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TReferenceList | |
| 2 | Event | TNotifyEvent | |
| 3 | CompSrc | TObject |
Result: stored in self (calling object)
Remarks:
Event is the procedure to be called, when the connected component is destroyed.