Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatic grid scrolling
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Programmatic grid scrolling
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01134201
Message ID:
01134201
Vues:
63
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform