Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

MakeSplitterOptimal Method, SftTree Object

Positions the splitter bar optimally.

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

Syntax

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

object

A SftTree object.

Comments

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

The MakeSplitterOptimal method positions the splitter bar optimally, so the left pane can display as much data as possible without a horizontal scroll bar.

MakeSplitterOptimal is only available for a split tree control (see Splitter.Visible).

Before using MakeSplitterOptimal, the best horizontal extent for the panes must be set using the Items.HorizontalExtent property or the Items.RecalcHorizontalExtent method. Once set, MakeSplitterOptimal can then be used to position the splitter bar optimally, so the left pane can display as much data as possible without a horizontal scroll bar.

MakeSplitterOptimal uses the current width of the tree control window to determine the allowable position of the splitter bar. If the tree control window is too small, the splitter bar may not be optimally set. This is particularly noticeable if the tree control window is resized after MakeSplitterOptimal is used.

The coordinates of the splitter bar can be retrieved using the Splitter.GetPosition method.

The Splitter.Width property is used to change the width of the splitter bar.

See Also SftTree Object | Object Hierarchy


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


Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.