Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

HorizontalExtent Property, SftTree Object

Defines the current horizontal scrolling extent.

Deprecated - Provided for compatibility with earlier versions only - Use Items.HorizontalExtent instead

Syntax

Get

VB.NETExtent = object.HorizontalExtent As Single
VBExtent = object.HorizontalExtent As Single
C#.NETfloat Extent = object.HorizontalExtent;
VC++float Extent = object->HorizontalExtent;
float Extent = object->GetHorizontalExtent();
CHRESULT object->get_HorizontalExtent(float* Extent);

Put

VB.NETobject.HorizontalExtent = Extent As Single
VBobject.HorizontalExtent = Extent As Single
C#.NETfloat object.HorizontalExtent = Extent;
VC++float object->HorizontalExtent = Extent;
void object->PutHorizontalExtent(float Extent);
CHRESULT object->put_HorizontalExtent(float Extent);

object

A SftTree object.

Extent

Defines the current horizontal scrolling extent. If this value is 0 (or less than the width of the tree control), horizontal scrolling is disabled. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Items.HorizontalExtent instead

The HorizontalExtent property defines the current horizontal scrolling extent.

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 plus the width returned by the ColumnsObj.OverheadWidth property.

The 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.HorizontalExtent 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.HorizontalExtent property have to be used again to recalculate or redefine the extent.

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.