Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Intercept Ctrl-A, Ctrl-C etc in ListBox control???
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
01237493
Message ID:
01237616
Vues:
14
Thank you. Seems to work great!!!


>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform