Vcl.ComCtrls.TCustomTreeView.OnGetImageIndex
Delphi
property OnGetImageIndex: TTVExpandedEvent read FOnGetImageIndex write FOnGetImageIndex;
C++
__property TTVExpandedEvent OnGetImageIndex = {read=FOnGetImageIndex, write=FOnGetImageIndex};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomTreeView |
Description
Occurs when the tree view looks up the ImageIndex of a node.
Write an OnGetImageIndex event handler to change the image index for the particular node before it is drawn. For example, the bitmap of a node can be changed to indicate a different state for the node.
OnGetImageIndex is an event handler of type Vcl.ComCtrls.TTVExpandedEvent.
See Also
Code Examples