Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping Ctrl-W
Message
From
19/01/1999 11:34:59
 
 
To
19/01/1999 10:51:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00177595
Message ID:
00177623
Views:
33
>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

Do you have KeyPreview=.t. ? It works when I try it. (23,2)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform