Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Not Behaving as Expected
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00683753
Message ID:
00683850
Vues:
33
Have you tried using the forms keypress event to process the enter key?

also , try clearing the keyboard buffer before you leave your routine.

>I'm tring to add a behavior to a grid where when enter is pressed the active row in moved down by 1 while staying on the same column
>
>The problem I'm having is very strange
>
>On the Keypress Event of the control on the column I'm interested in introducing this behavior to I have the following code
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>IF nKeyCode = 13
>
> NODEFAULT
> thisform.vgrid2.ActivateCell(thisform.vgrid2.ActiveRow+1,;
> thisform.vgrid2.ActiveColumn)
>
>ENDIF
>
>It seems pretty simple... The problem is It works fine for about 15 or so records and then stops working.. Trided a few diffrent data sets and had the same problem.. If i use the scroll bar the behavior becomes even more eratic sometimes skiping several rows down. I placed watches on the rows and colums. It all seems to look fine for the first few enters then just stops working or eraticaly
>
>thanks in advance for your advice
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform