Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trap Ctrl+I
Message
From
11/11/2010 16:33:35
 
 
To
11/11/2010 16:26:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01488847
Message ID:
01488866
Views:
97
This message has been marked as the solution to the initial question of the thread.
>>You can try ON KEY LABEL
>>
>>>
>>>I would like to trap the Keycombination Ctrl+I and have therefore set in myForm.KeyPreview = .T. and in the txtBox where I would like to act on this action I have in KeyPress
>>>
>>>Lparameters nKeyCode, nShiftAltCtrl
>>>
>>>DO case
>>>CASE nKeyCode = 9 And nShiftAltCtrl = 2 
>>>do mySomething
>>>ENDCASE
>>>
>>>
>>>Ctrl+I is never caught consequently mySomething is never executed. Ctrl+I are not the only combinations not recognized, others like Ctrl+A also however Ctrl+K shows correctly nKeyCode = 11.
>>>
>>>Anyubody who could give me a clue how to trap Ctrl+I in mytxtbox?
>>>
>>>Regards,
>>>
>>>Koen
>Sergey,
>
>What would make Ctrl+I not working ? Ctrl+K gives no problem. I suspect there is an other setting I overlook h.e. which one / where?
>
>Koen


Ctrl+I is a shortcut defined for Edit->Quick Info menu.

If you put:
SET SYSMENU TO
SET SYSMENU OFF
in Init event of the form you will see that KeyPress event will trap the Ctrl+I
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform