HorizontalScrollPosition DataWindow object property
Description
The position of the scroll box in the horizontal scroll bar.
Use HorizontalScrollMaximum with HorizontalScrollPosition to synchronize horizontal
scrolling in multiple DataWindow objects.
Controls
DataWindows
Syntax
PowerBuilder dot notation:
|
1 |
<span>dw_control</span>.Object.DataWindow.HorizontalScrollPosition |
Describe and Modify argument:
|
1 |
"DataWindow.HorizontalScrollPosition { = <span>scrollvalue</span> }" |
|
Parameter |
Description |
|---|---|
|
scrollvalue |
An integer specifying the position of |
Examples
|
1 |
string spos1 |
|
1 |
spos1 = dw1.Object.DataWindow.HorizontalScrollPosition |
|
1 |
string smax1, smax2, spos1, modstring |
|
1 |
integer pos2 |
|
1 |
smax1 = dw1.Describe( & |
|
1 |
"DataWindow.HorizontalScrollMaximum") |
|
1 |
spos1 = dw1.Describe( & |
|
1 |
"DataWindow.HorizontalScrollPosition") |
|
1 |
smax2 = dw_2.Describe( & |
|
1 |
"DataWindow.HorizontalScrollMaximum") |
|
1 |
pos2 = Integer(spos1) * Integer(smax2) / Integer(smax1) |
|
1 |
modstring = "DataWindow.HorizontalScrollPosition=" & |
|
1 |
+ String(pos2) |
|
1 |
dw1.Modify(modstring) |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest