Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sychronized grid scrolling
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00046362
Message ID:
00046413
Vues:
23
>>Hi everyone,
>>
>>I have a page frame with two pages and on each page is a grid. Both grids contain fields from the same table. Is there any way I can synchronize scrolling in the two grids? What I mean is if a user is scrolling down in one grid on one page, when she goes to the next page I want the same "view" of the table presented.
>>
>>I have tried looking at the relativerow and activerow properties, but all I have ever seen them be in the debugger is 0 (zero) so I can't quite figure out what they really represent. I would settle for a way to make the top VISIBLE row the selected record, but I can't figure that out either. I would prefer that the selected record not change though, so a user can scroll through the grid but the next keystroke still only affects the last record she actually selected (just like the browse window).
>>
>I do something like this without trouble using a table (should work same for views)...I just do a grid setfocus in the each page activate, so long as table is selected. The second grid automatically scrolls to show the selected record...

Thanks Bruce, but (there's always a "but" isn't there), what if the user scrolled past the active cell so it is no longer visible? Then the setfocus in the activate event simply moves the user back to the record she's on. Also, if a user scrolls down several rows, then chooses the third visible row on the grid, how can I make the other grid shows the active row in the same relative position?

I know -- I ask a lot :)

Singing the "I had a great idea, but it turned out really ugly" blues,
Valerie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform