[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 3723

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

  

DisplayIconLeft - returns the position of the actual icon for the expand sign (usually 1 pixel greater than DisplayExpandSignLeft).

The latest version of this document can be found at lazarus-ccr.sourceforge.net.