HorizontalScrollPosition

Description

The position of the scroll box in the horizontal scroll bar. Use HorizontalScrollMaximum with HorizontalScrollPosition to synchronize horizontal scrolling in multiple DataWindow objects.

Applies to

DataWindows

Syntax

Describe and Modify argument:

"DataWindow.HorizontalScrollPosition { = scrollvalue }"

Parameter

Description

scrollvalue

An integer specifying the position of the scroll box in the horizontal scroll bar of the DataWindow

Examples

Example 1

[Visual Basic]
Dim smax1, smax2, spos1, modstring As String

Dim pos2 As Integer

smax1 = dw1.Describe( _

"DataWindow.HorizontalScrollMaximum")

spos1 = dw1.Describe( _

"DataWindow.HorizontalScrollPosition")

smax2 = dw_2.Describe( _

"DataWindow.HorizontalScrollMaximum")

pos2 = CInt(spos1) * CInt(smax2) / CInt(smax1)

modstring = "DataWindow.HorizontalScrollPosition=" _

+ Str(pos2)

dw1.Modify(modstring)