Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scrolling Grids
Message
 
 
À
01/11/2001 12:14:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00576241
Message ID:
00576618
Vues:
35
Hi!

No way. You can try following approach, but this will be very slow:
1. lock the screen to do not show grids "jumping"
2. simulate click on the grid row to activate it after remembering current active row. Click on the row will give you a way to determine correct current row.
3. Refresh second grid so it will scrol to that row automatically.
4. Adjust second grid scrolling by DoScroll by one line to move new selected row to top of current visible rows area.
5. return record back to the current record, withough refreshing of first and second grid.
6. unlock the screen.

Tricky and slow, I think. I did not ever tried it, so do nto know even if it will work and what problems can arise with it...

>Hello All,
>I am having some problem because of little unusal interface on my form. I am having two grids with the same alias. First grid has three fields of that alias. and second grid has rest of the fields of that alias.
>I don't have scrollbars on first grid. Second grid has vertical scrollbar. so now what i have to achieve is whenever user clicks vertical scrollbar of second grid , first grid should also scroll exactly same way as second grid because they both are sharing same alias.
>
>i came up with simple code in second grid's scrolled event such as.
>Grid1.doScroll(nDirection)
>
>This works almost perfect except when instead of clicking scrollbars users drags the thumb up or down.
>
>can anyone help me here? Thanks a lot for help in advance
>
>Mark
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform