Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
keypress event on dropdown in a grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00003677
Message ID:
00003690
Vues:
45
>I have a grid with several dropdown lists.
>I would like to be able to use the uparrow and downarrow
>to change rows in the grid even when a dropdown has focus.
>The following code seems to work fine if the user is willing
>to hold down the control key:
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>SELECT adr
>if nShiftAltCtrl = 2
>do case
> case nKeyCode = 145
> with thisform.grid1
> .ActivateCell(.activeRow + 1, .activeColumn)
> endwith
> case nKeyCode = 141
> with thisform.grid1
> .ActivateCell(.activeRow - 1, .activeColumn)
> endwith
> otherwise
> thisform.keypress(nKeyCode,nShiftAltCtrl)
> endcase
>else
> thisform.keypress(nKeyCode,nShiftAltCtrl)
>endif
>
>Here's the problem:
>
>1) When I try to use if nShiftAltCtrl = 0… I can move to the next row
>but the value of the dropdown in the new row changes. I would by far
>prefer to let user use uparrow and downarrow to navigate to maintain
>a consistent UI. Is there a way to keep the new value fr
Chris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform