Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Synching Two Datawindows when Horizontal Scrolling PB 6.5

Status
Not open for further replies.

GregJohnson

Programmer
Oct 8, 2002
1
US
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.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top