Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress problem
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01188182
Message ID:
01188353
Views:
19
>>>>>>Hi all,
>>>>>>
>>>>>>How can I make difference between CTRL-H and CTRL-Backspace ?
>>>>>>both return nKeyCode=127 and nShiftAltCtrl=2
>>>>>>
>>>>>>I tried to test with nKeyCode with 0x11, but it doesn't work
>>>>>>
>>>>>>thanks
>>>>>
>>>>>Check http://news2news.com/vfp/?example=305&function=476&xpg=
>>>>
>>>>It work, but when I am on a textbox with data, it empty it, even if I have a NODEFAULT in the keyPressed method
>>>
>>>I'm not sure what exactly is your problem, but check Re: Backspace moves to previous field.. Thread #798825 Message #798844
>>>
>>>May be you can show us some code in the KeyPress method and tell what are you trying to accomplish.
>>
>>there is lot of code in the keypressed... Here is what the program should do...
>>The customer can define key to programaticaly fill textboxes with data from a table. He can choose CTRL with a letter (CTRL-A, CTRL-B, CTRL-C, etc...) All keys work fine, except CTRL-H that empty the active textbox. I tried to use a NODEFAULT, but it doesn't seems to work.
>
>I still can't figure out why can't you use ON KEY LABEL to block CTRL-BACKSPACE?

The ON KEY LABEL block CTRL-BACKSPACE, but it block also CTRL-H, so I can't use it. When I use it, my CTRL-H is blocked, but the active textbox is emptyed anyway.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform