Re: Prevent pasting by Dan
Dan
Tue Jun 13 17:53:18 CDT 2006
No, and I can't think of a single reason this might be desireable. <s>
If a control accepts input, it should accept input from the keyboard, paste,
voice recognition, handwriting recognition, IME editors, etc. -- if it
shouldn't accept input, it shouldn't accept ANY input. <shrug>
Dan
Andreas Müller wrote:
> Dan,
>
> thanks for this very usefull information. Do you know an other way to
> disallow my users to "paste" text in EditBox Controls but allow them
> to type text?
>
>
> -Andy
>
>
> "Dan Freeman" <spam@microsoft.com> schrieb im Newsbeitrag
> news:%234hqqiyjGHA.4040@TK2MSFTNGP05.phx.gbl...
>> SHIFT+INS is lower-level than CTRL-V. You'll occasionally see
>> Windows apps that don't support CTRL-V because they didn't implement
>> that part of the Windows foundation, but SHIFT-INS will still be
>> supported because it predates the whole Windows interface. It comes
>> from IBM's CUA spec, and is deep in the Windows bone marrow.
>>
>> Dan
>>
>>
>>
>> Andreas Müller wrote:
>>> Thank you to all.
>>>
>>> My last workaround shows that ON KEY LABEL CTRL+V RETURN solve this
>>> problem.
>>>
>>> BUT: Playing with my keyboard i noticed that SHIFT-INS also paste
>>> text from the clipboard to my control but there's no way to handle
>>> ON KEY LABEL SHIFT+INS!
>>>
>>>
>>> -Andy
>>>
>>>
>>> "Andreas Müller" <m.mueller@t-online.de> schrieb im Newsbeitrag
>>> news:%23ls15rUjGHA.1324@TK2MSFTNGP04.phx.gbl...
>>>> Hi,
>>>>
>>>> does anyone know if there is a way to prevent pasting text in a
>>>> EditBox Control. The KeyPress-Event doesn't fire using ctrl-v and
>>>> the following code doesn't work:
>>>>
>>>> Controls-Init-Event:
>>>> #define WM_PASTE 0x0302
>>>> BINDEVENT(_VFP.hWnd, WM_PASTE, This, "KeyPress")
>>>>
>>>>
>>>> Andy