07-07-2016 11:55 AM
Hi!
Please Help me! I want move my cursor when I Press ENTER between different "String controls".
Thanks
Best Regards
Solved! Go to Solution.
07-07-2016 12:00 PM - edited 07-07-2016 12:01 PM
Do you want to move Key Focus, or actually move the mouse?
If you have controls on the front panel that you want to just Tab through, you can set the Tabbing Order from the Edit dropdown. This is ideal for tabbing through input fields.
If you want to move the mouse cursor, you will need to use Windows API to control the mouse location. Here is a resource from NI doing this.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-07-2016 12:00 PM
Hi qz,
general note: usually you use a TAB to change key focus from one control to the next. You can set the "tabbing" order in your front panel…
Specific note: use an event structure to detect the ENTER keypress event and set the keyfocus as needed…
07-07-2016 12:07 PM
Here is an example that changes the Key Focus when another string has a value change. I've also limited the number of lines in each control to 1 so that pressing enter will finish changing the value. I agree with the others, that tabbing is generally what you want to do to navigate controls.
07-25-2016 09:36 AM
07-25-2016 10:29 AM