Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trap Ctrl+C keystrokes
Message
From
18/01/2010 10:55:48
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01444401
Message ID:
01444562
Views:
47
Peter,

I had also received a valuable tip from Martin Krivka : (1) make method on myForm : 'doCtrlC' (2) instantiate form with :
on key label CTRL+C execscript([if type("_screen.activeForm")='O']+chr(13)+[_screen.activeForm.doCtrlC]+chr(13)+[endif])
thanks also for replying,


Groet

Koen




>Have you already tried James Blackburn's tip?
>
>on key label ctrl+c wait wind "hoi" nowait
>on key label ctrl+c _vfp.activeform.myMethod()
>on key label ctrl+c keyboard "{ctrl+g}"
>
>>>>
>>>>Perhaps you have Ctrl-C in your menu, probably for "Edit - Copy"? In this case, I suspect the menu would have precedence.
>>>>
>>>>Groeten,
>>>>
>>>>Hilmar.
>>>
>>>
>>>Hi,
>>>
>>>I have no menu (yet).Working on a modal form in the VFP development environment.
>>>
>>>Update: Fabio's prg now converted into a class and working like a charm: method Keypress is acting upon nKey=3 and nShiftCtrlAlt = 2 (=Ctrl+C)
>>>Thanks for support
>>>
>>>
>>>Regards,
>>>
>>>Koen
>>
>>
>>Hi,
>>
>>update again :
>>
>>Fabio's prg is only working as it makes use of the "Debug output" - disabling this and compiling to an exe will result in a non working procedure. So I am back to 0 :(
>>
>>Regards,
>>
>>Koen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform