RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TChangeLink Class

The TImageList component uses TChangeLink internally to notify other objects when changes are made to the image list.

Pascal
TChangeLink = class(TObject);
C++
class TChangeLink : public TObject;

ImgList

A TImageList keeps a list of its TChangeLink objects. Each is associated with a particular component, such as a tree view or list view control. A component can register its change link with an image list by calling the image list's RegisterChanges method. Before destruction, the component should then call the UnRegisterChanges method. 

Component writers can use the change link object to receive notification when changes are made to an image list that a control uses. Use the OnChange event of the change link to execute some code when the image list changes. For example, the tree view control uses a change link object to know when its image list has changed. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!