Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding screen row/col in a grid
Message
De
18/07/2000 02:48:04
 
 
À
17/07/2000 09:46:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00393227
Message ID:
00393660
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform