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:
00579462
Views:
23
Thanks, I was thinking about it too.

>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.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform