Vcl.ImgList.TChangeLink

From RAD Studio API Documentation
Jump to: navigation, search

System.ImageList.TImageLinkSystem.TObjectTChangeLink

Delphi

TChangeLink = class(TImageLink)

C++

class PASCALIMPLEMENTATION TChangeLink : public System::Imagelist::TImageLink

Properties

Type Visibility Source Unit Parent
class public
Vcl.ImgList.pas
Vcl.ImgList.hpp
Vcl.ImgList Vcl.ImgList

Description

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

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.

See Also