Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I intercept Ctrl+A in a form?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00579379
Message ID:
00579452
Views:
22
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform