Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Control
Message
 
À
30/01/2003 17:22:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00747139
Message ID:
00747790
Vues:
12
Dear Javier,

My problem was entering data in text fields and after pressing Enter or Tab key going to the left cell instead of right. I did it by calling Grid.ActivateCell(nRow, nCol) in Keypress event of text boxes of every column after detecting that nKeyCode = 13 or nKeyCode = 9 .
But for supporting scrolling grids, I used Grid.Relativecolumn properties and I decreased it for going to the left.

I checked your idea, It's working ! by using the following code in lostfocus event of each text box.

IF LASTKEY() = 13 OR LASTKEY() = 9
This.Parent.Parent.column2.text1.SetFocus
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform