01-02-2013 01:50 AM
Hi,
How can I disallow the "paste" function in an input string?
I am using Labview 8.5.1.
Thanks.
Solved! Go to Solution.
01-02-2013 02:05 AM - edited 01-02-2013 02:07 AM
Hi tantan,
- disallow shortcut menus for your control
- catch/filter keypress events of Ctrl-V
P.S.: And don't create double posts for the same topic! Keep all information in one place!
01-02-2013 02:30 AM
Hi GerdW,
Thanks for your feedback. Sorry I can't delete the first post previously before I send out the second post.
For the catch/filter keypress events of Ctrl-V. Can elaborate more about it? Where should I start?
Thanks.
01-02-2013 02:57 AM
01-02-2013 02:57 AM
You have to capture the key pressed and discard that if it is a combination of Ctrl and V. Check the attached vi.
01-02-2013 07:05 AM
Example converted here:http://forums.ni.com/t5/Version-Conversion/Version-9-to-8-5-1/m-p/2267914#U2267914.
In that thread, I also gave an example without using the keyboard input reference.
01-02-2013 07:23 PM
Hi Crossrulz,
Thanks for your simple example, it has solved my problem!
01-02-2013 07:53 PM
I prefer to remove a menu item instead of simply ignoring a seemingly allowed item.