Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DELETE and BACKSPACE - How to forbid?
Message
 
To
10/04/1997 12:08:33
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00027709
Message ID:
00027805
Views:
29
>>>I'm working with a RichText Control and in some specific situations I'd like to forbid the user to use DELETE or BACKSPACE from keyboard.
>>>Does anybody know a command that could suppress the effect of trying to use these keys?
>>>
>>>Thanks...
>>
>>Hi Renato,
>>
>>The simplest way would be in the cases needed to issue:
>>
>>ON KEY LABEL DEL *
>>ON KEY LABEL BACKSPACE *
>>
>>Now the delete and backspace keys will not work. Just remember to set them back with the same commands minus the asterix's.
>
>Thank you for helping, Colin (I haven't seen anywhere the syntax above).
>
>Unfortunately, the RichText Control simply ignores it.
>I've tried within an EditBox and it works fine, but I'm not using EditBox in this case because it also has some problems with the SelStart property.
>
>I wonder if MS has solved it in VFP 5.0a...
>
>Renato.

i think that's something you'd have to turn off in the .ocx control....
Previous
Reply
Map
View

Click here to load this message in the networking platform