GregJohnson
Programmer
I am having the following problem keeping two grid datawindows in sych when
horizontal scrolling.
if dw_1 is scrolled using the right or left > on the scroll bar, both dw_1
and dw_2 move exactly one column until the last column is reached. Then
dw_1 will move a partial col (when going right); dw_2 will not move
creating an out of synch condition. The same condition can be created
using the Horizontal scroll bar itself with the added contition that it
will happen any time a partial H scroll is done on DW_1.
below is a diagram trying do show the error.
SCROLL TO END
DW_1
__________________________________________________________________
| colum x col y |
| |
| |
| |
<=================================================================>
DW_2
__________________________________________________________________
| colum x col y |
| |
| |
DW_1
__________________________________________________________________
| um x col y |
| |
| |
| |
<=================================================================>
DW_2
__________________________________________________________________
| colum x col y |
| |
| |
SCROLL USING SCROLL BAR
DW_1
__________________________________________________________________
| colum A col B col c col d col f col g col h col i |
| |
| |
| |
<=================================================================>
DW_2
__________________________________________________________________
| colum A col B col c col d col f col g col h col i |
| |
| |
DW_1
__________________________________________________________________
| um A col B col c col d col f col g col h col i col j |
| |
| |
| |
<=================================================================>
DW_2
__________________________________________________________________
| colum A col B col c col d col f col g col h col i |
| |
| |
I have used two methods.
1. Dot notation in the horizontal scrol event and
2. script contained in online doc.
The first method seems to be the better of the two. If I could only fix
this one problem.
Any help would be appricated.
horizontal scrolling.
if dw_1 is scrolled using the right or left > on the scroll bar, both dw_1
and dw_2 move exactly one column until the last column is reached. Then
dw_1 will move a partial col (when going right); dw_2 will not move
creating an out of synch condition. The same condition can be created
using the Horizontal scroll bar itself with the added contition that it
will happen any time a partial H scroll is done on DW_1.
below is a diagram trying do show the error.
SCROLL TO END
DW_1
__________________________________________________________________
| colum x col y |
| |
| |
| |
<=================================================================>
DW_2
__________________________________________________________________
| colum x col y |
| |
| |
DW_1
__________________________________________________________________
| um x col y |
| |
| |
| |
<=================================================================>
DW_2
__________________________________________________________________
| colum x col y |
| |
| |
SCROLL USING SCROLL BAR
DW_1
__________________________________________________________________
| colum A col B col c col d col f col g col h col i |
| |
| |
| |
<=================================================================>
DW_2
__________________________________________________________________
| colum A col B col c col d col f col g col h col i |
| |
| |
DW_1
__________________________________________________________________
| um A col B col c col d col f col g col h col i col j |
| |
| |
| |
<=================================================================>
DW_2
__________________________________________________________________
| colum A col B col c col d col f col g col h col i |
| |
| |
I have used two methods.
1. Dot notation in the horizontal scrol event and
2. script contained in online doc.
The first method seems to be the better of the two. If I could only fix
this one problem.
Any help would be appricated.