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
PowerBuilder dot notation:
dw_control.Object.DataWindow.HorizontalScrollPosition
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
string spos1 spos1 = dw1.Object.DataWindow.HorizontalScrollPosition string smax1, smax2, spos1, modstring integer pos2 smax1 = dw1.Describe( & "DataWindow.HorizontalScrollMaximum") spos1 = dw1.Describe( & "DataWindow.HorizontalScrollPosition") smax2 = dw_2.Describe( & "DataWindow.HorizontalScrollMaximum") pos2 = Integer(spos1) * Integer(smax2) / Integer(smax1) modstring = "DataWindow.HorizontalScrollPosition=" & + String(pos2) dw1.Modify(modstring)