Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement