[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomTreeView.GetImageIndex

Gets the index of the image for the specified node.

Declaration

Source position: comctrls.pp line 3596

protected procedure TCustomTreeView.GetImageIndex(

  Node: TTreeNode

); virtual;

Arguments

Node

  

Tree node examined in the method (and possibly updated in the event handler).

Description

Allows the image index for the tree node to be updated before the node is drawn. Signals the OnGetImageIndex event handler (when assigned) where the image index can be determined and stored in the specified tree node.

Called from the DoPaintNode method for any unselected nodes in the tree view. Use the OnGetSelectedIndex event handler to get the image index for a selected node.


Version 3.2 Generated 2024-02-25 Home