Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Synchronizing two grids
Message
 
 
À
17/01/2003 14:07:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00742997
Message ID:
00743245
Vues:
26
Hi!

First of all,
Take a look to LeftColumn property. It represents scrolling - what column is currently leftmost. Synchronizing of horizontal scrolling of 2 grids would look like using a few "DoScroll" method calls for another grid till LeftColumn property of both grids equal.

Next step is placing call of synchronizing routine in appropriate events. It is, of course, Scrolled event. In addition, you should call it in the AfterRowColChange event - when grid gets focus by keyboard, or cell is changed, grid is also auto-scrolled into the current active cell to display it.

Optional step - when columns order changes, or column size changes, you require to do the same change for another grid. These are "Column.Resize" and "Column.Move" events, as well as appropriate column properties "ColumnOrder" and "width".



>Hi all
>
>I need to know when a grid has scrolled Left or Right in order to synchronize it with another grid right below.
>
>The scrolled event only works when clicking on the scroll bar or when moving a scroll box.
>
>I also need to know which column the first column shown is, after a left or right scroll.
>
>Thanks in advance for any help.
>
>Oscar Corte
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform