Information générale
Catégorie:
Codage, syntaxe et commandes
>My users are in the habit (from the old days) of using FoxPro’s built in Ctrl-W command to save changes that they make after editing a record on a form. Although it works, it has a side effect of moving the record pointer to the end of the file, which in my case is undesirable so I would like to block Ctrl-W.
>
>I have to tried to trap Ctrl-W in the keypress event (case case nKeyCode = 23 .and. nShiftAltCtrl = 2) but Ctrl-W seems to bypass the keypress event somehow. How can I intercept, turn off, or redirect Ctrl-W.
>
>Bob
I've just realized that my keypress event also traps for Ctrl-Home and Ctrl-End to position me at the first or last record in the file. Unfortunately, Ctrl-W and Ctrl-End have the same key code (23).
My problem should no longer say thet keypress can't see a Ctrl-W. It looks like the only answer might be to educate users to no longer use Ctrl-W as a "save" key.
Bob
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