Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Relativerow/RelativeColumn
Message
From
19/12/1998 04:46:50
 
 
To
19/12/1998 04:04:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00169085
Message ID:
00169086
Views:
16
>Hello,
>
>I don't understand this properties exactly. Can anyone explain this with some example. I mean in which case it is useful ?

Hi John.

OK. Suppose you have a grid with 14 visible rows. As the user scrolls down in the grid and the first row scrolls up so it is no longer visible, the ActiveColumn of the last visible row in the grid may be, for example, 22. But he RelativeRow for the last visible row remains 14. As the records scroll up in the grid, the first row in the grid is always RelativeRow #1. But it may be ActiveRow #22. RelativeColumn works the same way.

As for how to use this: one example might be a little combo class I created especially for use inside grids. When the combo's list is dropped down, use of the cursor keys traverses the list. But when the list is not droppped down, use of the cursor keys traverses the grid. In order to make it work, I had to take action when the grid's ActiveRow was greater than it's RelativeRow and invoke the grid's DoScroll method.

Hope this helps.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform