Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sychronized grid scrolling
Message
De
22/08/1997 12:41:16
 
 
À
22/08/1997 12:29:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00046362
Message ID:
00046433
Vues:
26
>>>>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
>>
>>I know what you mean (s)...here's what I do for this: since it's not easy to capture the current record/grid row without clicking on a grid column, I move from one grid to the other with a click on grid object. That is, the user clicks on a grid record on one page, then the code opens the other page to the same place. I use a non-editable ID column with special text color and underline to indicate "more info is available"...
>>
>>None of my design-phase users have requested the feature you're trying to build so far (and I won't bring it up, either (s)). But if someone comes up with a direct solution, I'm interested too...
>
>I have feeling that it should be one grid 'containing' all columns but showing either first or second set of them. It can be done by resetting Column.ControlSources on fly. So basically, we shouldn't have pageframe design. It should be one grid and some button/checkbox which will trigger column.controlsources back and forth.

Thanks!! You've just helped me further along my way to redesigning this thing based on your and Bruce's suggestions (see my response to Bruce). Of course, I should have thought of this LONG ago (she says with a sheepish grin). Now I have to decide if its really WORTH it. I mean, the two grids I have going now took me WEEKS to develop (lots of complicated stuff with the dynamic settings going on).

Bruce and Edward -- you guys are tops! I'll let you know how it goes.

Of course it doesn't stop me from wondering -- why CAN'T we tell what row is the first visible row in a grid??

Valerie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform