[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Calculates and updates the value in the DefaultItemHeight property.
Source position: comctrls.pp line 3612
protected procedure TCustomTreeView.UpdateDefaultItemHeight; virtual; |
UpdateDefaultItemHeight is a procedure used to calculate and update the value for the DefaultItemHeight property. No actions are performed in the method for the following conditions:
The height for the Text in the node is calculated using the TCanvas.TextHeight method, and space is reserved for the default spacing for the tree node.
GetImageSize is called to get the height needed for Images or StateImages used in the control. Values in ImageSize and StateImageSize are updated with the scaled image heights including default spacing. The calculated value is enlarged for the Image sizes if needed.
UpdateDefaultItemHeight updates the States property to include values that indicate the item height for nodes has changed. The Invalidate method is called to redraw the control.
UpdateDefaultItemHeight is called from methods like: InitializeWnd, Loaded, SetOptions, and DoPaint.
|
Default height for tree nodes in the control. |
|
|
Image list which holds icons for the tree nodes in Items. |
|
|
Width for the Images used in the tree view control. |
|
|
Image list with the bitmaps used to represent the state for nodes in the tree. |
|
|
Width for the bitmaps in the StateImages property. |
|
|
Contains the state values in effect for the control. |
Version 3.2 | Generated 2024-02-25 | Home |