Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Intercept Ctrl-A, Ctrl-C etc in ListBox control???
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Intercept Ctrl-A, Ctrl-C etc in ListBox control???
Miscellaneous
Thread ID:
01237493
Message ID:
01237493
Views:
91
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.
Next
Reply
Map
View

Click here to load this message in the networking platform