TVirtualDrawTree.OnGetImageIndex Event

Virtual Tree View

Display management event.

Pascal
property OnGetImageIndex: TVTGetImageEvent;
Description

This event is triggered whenever the tree needs the index of an image, be it the normal, the selected or the state image. The event should be as fast as possible because it is at times frequently called when the layout of the node must be determined, e.g. while doing draw selection with the mouse or painting the tree. Kind determines which image is needed and Column determines for which column of the node the image is needed. This value can be -1 to indicate there is no column used. The parameter Ghosted can be set to true to blend the image 50% against the tree background and can be used for instance in explorer trees to mark hidden file system objects. Additionally nodes are also drawn with a ghosted icon if the are part of a cut set during a pending cut-to-clipboard operation. In this case changing the ghosted parameter has no effect.

Notes

Blending nodes can be switched by using toUseBlendImages in TreeOptions.PaintOptions.

Class
Links
What do you think about this topic? Send feedback!