Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Synchronizing two grids
Message
From
20/01/2003 10:37:34
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00742997
Message ID:
00743474
Views:
21
Vlad

When hitting the Left or Right arrows, the Scroled event does not fire. According to VFP documentation, values 4 and 5 are the nDirection parameter values for these.

¿Any idea why this is happening?

I'm using VFP 7 SP1


Oscar


>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform