SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Positions the splitter bar optimally, so the left pane can display as much data as possible without a horizontal scroll bar.
Class: SplitterClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public void MakeOptimal();
Public Sub MakeOptimal()
Positions the splitter bar optimally, so the left pane can display as much data as possible without a horizontal scroll bar.
MakeOptimal is only available for a split tree control (see SplitterClass.Visible).
Before using MakeOptimal, the best horizontal extent for the panes must be set using the SftTree.HorizontalExtent and SftTree.HorizontalExtentRight properties or the SftTree.RecalcHorizontalExtent method. Once set, MakeOptimal 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.
MakeOptimal 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 MakeOptimal is used.
The coordinates of the splitter bar can be retrieved using the SplitterClass.Area property.
The SplitterClass.Width property is used to change the width of the splitter bar.
See Also SplitterClass Class | Classes | SftTree/NET 2.0