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
Defines the current horizontal scrolling extent.
Get
VB.NET | ExtentPix = object.HorizontalExtent2Pix As Integer |
VB | ExtentPix = object.HorizontalExtent2Pix As Long |
C#.NET | int ExtentPix = object.HorizontalExtent2Pix; |
VC++ | long ExtentPix = object->HorizontalExtent2Pix; long ExtentPix = object->GetHorizontalExtent2Pix(); |
C | HRESULT object->get_HorizontalExtent2Pix(long* ExtentPix); |
Put
VB.NET | object.HorizontalExtent2Pix = ExtentPix As Integer |
VB | object.HorizontalExtent2Pix = ExtentPix As Long |
C#.NET | int object.HorizontalExtent2Pix = ExtentPix; |
VC++ | long object->HorizontalExtent2Pix = ExtentPix; void object->PutHorizontalExtent2Pix(long ExtentPix); |
C | HRESULT object->put_HorizontalExtent2Pix(long ExtentPix); |
object
A SftTreeItems object.
ExtentPix
Defines the current horizontal scrolling extent in the right pane in pixels. If this value is 0 (or less than the width of the columns in the right pane of the tree control), horizontal scrolling is disabled.
The HorizontalExtent2Pix property defines the current horizontal scrolling extent.
The Items.HorizontalExtent2 and HorizontalExtent2Pix methods are synonyms, but may use different coordinate systems.
A tree control's displayable area can be wider than the tree control's window width. If the displayable area is wider, the tree control can be scrolled horizontally if it has a horizontal scroll bar (see Scrollbars property). The width of the displayable area can be set by the application using the Items.RecalcHorizontalExtent method or the Items.HorizontalExtent property. For performance reasons, the optimal width is not automatically calculated when adding items to a tree control.
The width Extent set using this property must be equal to or greater than the combined column widths.
The Items.HorizontalExtent property defines the horizontal extent of the displayable area (or the left pane of a split tree control).
The Items.HorizontalExtent2 property defines the horizontal extent of the displayable area in the right pane of a split tree control. The Items.HorizontalExtent2 property can only be used with a split tree control.
If the width set is smaller than the actual window width, the control cannot be scrolled horizontally. The horizontal scroll bar will be disabled or hidden, based on the Scrollbars property.
By default, a tree control does not handle horizontal scrolling, even if the Scrollbars property defines scroll bars to be available. To start horizontal scrolling, an application has to use the Items.RecalcHorizontalExtent method or the Items.HorizontalExtent2 property. They indicate to the tree control that horizontal scrolling support is desired and allows it to determine the horizontal scrolling extent.
The tree control doesn't automatically update the horizontal extent when items are added or deleted or other methods or properties are used, which may invalidate the horizontal extent. The Items.RecalcHorizontalExtent method or Items.HorizontalExtent2 property have to be used again to recalculate or redefine the extent.
See Also SftTreeItems Object | Object Hierarchy