Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Navigation
Message
De
14/03/2002 13:15:42
 
 
À
14/03/2002 11:36:28
Bill Emery
MedScribe Information Systems
Sylvania, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00632811
Message ID:
00632873
Vues:
12
>I'm using VFP 6 SP5 on Windows ME.
>
>I have a form containing a grid which is bound to a table. I created the grid with the wizard.
>
>When the user enters data into a cell and hits the enter key, the cursor advances to the next field/cell, moving left to right and wrapping when it comes to the end. What the user would like to see is the cursor advancing to the next row and remaining in the same cell/field.
>
>I've tried using the keyboard verb in the lost focus event, but it doesn't work well as other fields are accessed before the cursor comes to rest in the next row, depending on the valid clauses of the other fields. It seems like I'm missing something obvious here - can someone please point me in the right direction? Thanks in advance!

How about something like this in the keypress event using the activatecell method.
LPARAMETERS nColIndex

IF nColIndex=Column # and INLIST(LASTKEY(),4,9,13)
  thisform.grid1.ActivateCell(thisform.grid1.Relativerow+1,Column #)
  nodefault
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform