Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I intercept Ctrl+A in a form?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00579379
Message ID:
00579452
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
Try This:
*- frmXXX.lstXXX.GotFocus().
*- Temporarily change Ctrl+A behavior.
On Key Label Ctrl+A KeyBoard "A"
Return .T.

*- frmXXX.lstXXX.KeyPress().
LParameters nKeyCode, nShiftAltCtrl
If nKeyCode = 65 Then
   For iItem = 1 To This.ListCount
      This.SelectedID( iItem ) = .T.
   Next iItem
Endif
Return .T.

*- frmXXX.lstXXX.LostFocus().
*- Restore default Ctrl+A behavior.
On Key Label Ctrl+A
Return .T.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform