HScroll Property

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

This property provides a scripting interface for the horizontal scroll bar of the given window or control.

Declaration

TestObj.HScroll

Read-Only Property A ScrollBar object
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following objects:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

A ScrollBar object that corresponds to the window’s or the control’s horizontal scroll bar.

Remarks

If the window does not have a horizontal scroll bar, the Max, Min and Pos properties of the ScrollBar object will return 0.

JavaFX ScrollPane: If the control does not have a scroll bar, the minimum position will be 0, the maximum position will be 1, and the current position could be changed to any value between the minimum and maximum.

Example

To view an example that demonstrates how to use the HScroll property, see ScrollBar Object.

See Also

VScroll Property
ScrollBar Object

Highlight search results