Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Intercept Ctrl-A, Ctrl-C etc in ListBox control???
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01237493
Message ID:
01237494
Views:
18
Those are Edit menu shortcuts. You can intercept them with
ON KEY LABEL CTRL+A ...
ON KEY LABEL CTRL+C ...
ON KEY LABEL CTRL+V ...
You can set them in GotFocus() and reset in LostFocus().

>The Keypress event for a ListBox does not seem to fire when the user hits Ctrl-A, Ctrl-C, or Ctrl-V. I would like to use these keystrokes for their usual action when the listbox has focus (the listbox is on a relatively complex form):
>Ctrl-A - Select all items
>Ctrl-C - Copy items to clipboard
>Ctrl-V - Paste items from clipboard
>
>This functionality is already built in and working via a rightclick pop-up menu. So I only need to intercept these keystrokes and call the appropriate routines behind the scenes. But the keypress event does not fire for these keystrokes (it does fire for visible ascii characters).
>
>Any suggestions much appreciated. Thanks.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform