API:Vcl.ComCtrls.TTreeView.OnGetImageIndex
Delphi
property OnGetImageIndex;
C++
__property OnGetImageIndex;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TTreeView |
Description
Occurs when the tree view looks up the ImageIndex of a node.
Vcl.ComCtrls.TTreeView.OnGetImageIndex inherits from Vcl.ComCtrls.TCustomTreeView.OnGetImageIndex. All content below this line refers to Vcl.ComCtrls.TCustomTreeView.OnGetImageIndex.
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