Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

MakeRowHeaderOptimal Method, SftTree Object

Sets the optimal row header width so that the text and graphics of all row headers can be displayed.

Deprecated - Provided for compatibility with earlier versions only - Use RowHeaders.MakeOptimal instead

Syntax

VB.NETobject.MakeRowHeaderOptimal()
VBobject.MakeRowHeaderOptimal
C#.NETvoid object.MakeRowHeaderOptimal();
VC++HRESULT object->MakeRowHeaderOptimal();
CHRESULT object->raw_MakeRowHeaderOptimal();

object

A SftTree object.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use RowHeaders.MakeOptimal instead

The MakeRowHeaderOptimal method sets the optimal row header width so that the text and graphics of all row headers can be displayed.

This method resizes the row header area so that the row headers and row header graphics can be completely displayed without being truncated or clipped. The RowHeaders.OptimalWidth method can be used to calculate the row header area's optimal width without resizing the row header area. The row header width can be changed using the RowHeaders.Width property.

By changing tree control properties, the optimal row header width may change. Adding items, setting new row header graphics and changing row header text are a few of the actions that can affect the optimal row header width. The row header width may have to be set again to allow items to be completely visible. The tree control does not automatically adjust the row header width.

Calculating the optimal row header width can be a time consuming operation, particularly if many items have been added to the tree control. RowHeaders.OptimalWidth scans all items to determine the best row header width, but can be limited to a specific number of items using the Items.CalcLimit property. This reduces the time spent to calculate the optimal width, but may still leave some items clipped.

If items are not visible because their parent items are collapsed, these can be excluded from the optimal width calculation by setting the Items.CalcVisibleOnly property to True.

See Also SftTree Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.