Registers a TChangeLink object for notifications when the image list is changed.
Source position: imglist.pp line 392
public procedure TCustomImageList.RegisterChanges( |
Value: TChangeLink |
); |
Value |
|
Reference to the ChangeLink object. |
RegisterChanges is a procedure used to register the specified change link object to receive change notifications when the image list is changed.
Value contains a TChangeLink instance that represents the class subscribing to the event notifications. When AValue is assigned, but not yet stored in the internal change link list, the current class instance is assigned as the Sender for change notifications. Value is added to the internal list of subscribers.
No actions are performed when Value is unassigned (contains Nil) or when it has already been added to the internal list of subscribers.
Value, and other subscribers the internal list, receive change notifications when the Reference class for an image resolution is freed and when the private NotifyChangeLink method is called.
Use UnRegisterChanges to remove a TChangeLink instance from the internal list of subscribers.
NotifyChangeLink is called from the implementation of the Change method.
|
Sends change notifications when the image list is updated. |
Lazarus Component Library (LCL) | Version 3.99-1b97b99691 (2024-09-01) | Home |