Re: Prevent pasting

Tech-Archive recommends: Speed Up your PC by fixing your registry



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


.



Relevant Pages

  • Re: older games dont work
    ... the support of my work have it and will burn a CD to me. ... and any other tips to make this game works will be great. ... Windows 95 including but not limited to: ... to map a pedal as a control ...
    (microsoft.public.windowsxp.games)
  • Re: Listing of XP tools commands
    ... All files with a .cpl extension are normally invoked via the Control ... IP Configuration - ipconfi/all ... Logs You Out Of Windows - logoff... ... System File Checker Utility - sfc /revert ...
    (microsoft.public.windowsxp.general)
  • Re: Listing of XP tools commands
    ... All files with a .cpl extension are normally invoked via the Control ... IP Configuration - ipconfi/all ... Logs You Out Of Windows - logoff... ... System File Checker Utility - sfc /revert ...
    (microsoft.public.windowsxp.general)
  • Re: Listing of XP tools commands
    ... All files with a .cpl extension are normally invoked via the Control ... IP Configuration - ipconfi/all ... Logs You Out Of Windows - logoff... ... System File Checker Utility - sfc /revert ...
    (microsoft.public.windowsxp.general)
  • Re: Listing of XP tools commands
    ... [I found that page in a few seconds by Googling "run commands winxp", ... All files with a .cpl extension are normally invoked via the Control ... Logs You Out Of Windows - logoff... ... System File Checker Utility - sfc /revert ...
    (microsoft.public.windowsxp.general)