Re: Prevent pasting
- From: "Dan Freeman" <spam@xxxxxxxxxxxxx>
- Date: Tue, 13 Jun 2006 15:53:18 -0700
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@xxxxxxxxxxxxx> schrieb im Newsbeitrag
news:%234hqqiyjGHA.4040@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxx> schrieb im Newsbeitrag
news:%23ls15rUjGHA.1324@xxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- Prevent pasting
- From: Andreas Müller
- Re: Prevent pasting
- From: Andreas Müller
- Re: Prevent pasting
- From: Dan Freeman
- Re: Prevent pasting
- From: Andreas Müller
- Prevent pasting
- Prev by Date: Re: Read ini file to retrieve file paths
- Next by Date: Re: Foxpro now an "A" language
- Previous by thread: Re: Prevent pasting
- Next by thread: Re: Visual FoxPro 6.0
- Index(es):
Relevant Pages
|