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

TCustomTreeView.StateImages

Image list with the bitmaps used to represent the state for nodes in the tree.

Declaration

Source position: comctrls.pp line 3763

public property TCustomTreeView.StateImages : TCustomImageList
  read FStateImages
  write SetStateImages;

Description

StateImages is a TCustomImageList property which contains bitmaps used to represent the state for nodes in the tree hierarchy. Images in the list correspond to the values used in the TTreeNode.StateIndex property.

Assigning a new value for the property causes the UnregisterChanges method in the image list to be called. The RegisterChanges method in the image list is called after the new images are assigned. The value in DefaultItemHeight is updated (when needed) to use the height for the images scaled to the current PPI setting in Font. The item height will include the default item spacing needed for the images. The control is redrawn when the new image list has been assigned to the property.

See also

TCustomTreeView.DoPaintNode

  

Renders the specified tree node to the canvas for the control.

TCustomTreeView.UpdateDefaultItemHeight

  

Calculates and updates the value in the DefaultItemHeight property.

TTreeNode.DisplayIconLeft

  

Returns the horizontal position for the left edge of the icon displayed for the tree node.


Version 3.2 Generated 2024-02-25 Home