The position of the scroll box in the vertical scroll bar. Use VerticalScrollMaximum with VerticalScrollPosition to synchronize vertical scrolling in multiple DataWindow objects.
DataWindows
PowerBuilder dot notation:
dw_control.Object.DataWindow.VerticalScrollPosition
Describe and Modify argument:
"DataWindow.VerticalScrollPosition { = scrollvalue }"
Parameter |
Description |
---|---|
scrollvalue |
A long specifying the position of the scroll box in the vertical scroll bar of the DataWindow |
string spos1 spos1 = dw1.Object.DataWindow.VerticalScrollPosition
string spos1, smax, sscroll, modstring spos1 = & dw1.Describe("DataWindow.VerticalScrollPosition") smax = & dw1.Describe("DataWindow.VerticalScrollMaximum") sscroll = String(Long(smax)/2) modstring = "DataWindow.VerticalScrollPosition=" + & sscroll dw1.Modify(modstring)