Sign in Join
FPDoc Onlineexperiment

TCustomTreeView.GetSelectedIndex procedure

Member of TCustomTreeViewprotectedIn unit ComCtrls

Gets the index for the image used for a selected tree node on the control.

Declaration

pascal
procedure GetSelectedIndex(Node: TTreeNode); virtual

Arguments

Node

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

Description

Allows the image index for a selected node to be updated before the node is drawn. Signals the OnGetSelectedIndex 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 a selected node in the tree view. Use the OnGetImageIndex event handler to get the image index for a node that is not selected.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.