Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatic grid scrolling
Message
From
06/07/2006 13:03:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Programmatic grid scrolling
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01134201
Message ID:
01134201
Views:
62
Hi All,

I have 2 grids on a form, and I want both to have the same number of
columns, widths, etc. There are more columns than will fit on the form,
so I need to use scroll bars. I would like to be able to 'tie' the
grids together so that when the first grid is scrolled (horizontally, I
don't care about vertically) the second grid scrolls the same amount.
Currently I have code in the first grid's Scrolled() method to call
DoScroll() on the second grid. This sort of works, it doesn't work when
I grab the slider and move more than one click over. The bottom grid
only moves as if it was clicked once. Is there any way to tell how far
the bar was dragged? And I have also just realised that when I use the
left and right keys to move about the grid the scrolled event does not
get fired at all. I am currently looking to see if I can get something
working with BINDEVENT.

Any other ideas? Is this even possible?

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform