Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding screen row/col in a grid
Message
From
18/07/2000 02:48:04
 
 
To
17/07/2000 09:46:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00393227
Message ID:
00393660
Views:
20
Hi John.

>> is it possible to know what screen row/col you are on while moving through a grid. i need to have a small grid follow the selected cell in a certain column. <<

I'm not sure I understand exactly what you want to accomplish here, but this is code that I use to instantiate a form with a little pop-up calendar directly below the grid cel on which the user has bould-clicked.
LOCAL luValue, lnTop, lnLeft

*** Calculate where the popup calendar should be instantiated
*** So it pops up directly below the date text box
*** SYSMETRIC( 9 ) is the height of the Form's title bar in case you were curious
lnTop = OBJTOCLIENT( Thisform, 1 ) + OBJTOCLIENT( This, 1 ) + This.Height + 2
lnLeft = OBJTOCLIENT( Thisform, 2 ) + OBJTOCLIENT( This, 2 )

DO FORM GetDate WITH lnTop, lnLeft, This.Value TO luValue
This.Value = luValue
HTH

Marcia
Previous
Reply
Map
View

Click here to load this message in the networking platform