The position of the scroll box in the horizontal scroll bar. Use HorizontalScrollMaximum with HorizontalScrollPosition to synchronize horizontal scrolling in multiple DataWindow objects.
DataWindows
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 |
[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)