08-21-2012 08:43 AM
You can already tab through visible elements in an array, but when you reach the last visible element, the next tab will wrap you around to the first visible element.
Is there anyway to tab through all visible elements? I don't see that as an official feature.
I'm trying to code it myself. I can filter tab keyboard events that originate from an array, detect which element is selected and then adjust the top visible element appropriately (through the 'IndexVals' property). But I can't figure out how to move the focus to the next element (so the user can begin typing in a new value without clicking on the element).
Any ideas? Thanks.
Solved! Go to Solution.
08-21-2012 09:31 AM
Hi,
I think the attached Vi should do what you would like.
Let me know if this solve your problem...
Best Regards,
08-21-2012 09:54 AM
Thanks, that's perfect. You just need to discard the tab events so they don't act twice.
08-21-2012 01:28 PM
On closer investigation, it's close. But when you have entered a value in element 'n' and press tab, it moves your focus to 'n+1' but also commits the value you entered in 'n' to element 'n+1' (and no new value is commited to 'n'). Here is slightly updated code (that filters the original tab). Any ideas?
08-21-2012 01:39 PM
I think I figured it out. If you disable KeyFocus before you write new IndexVals, it will commit the originally typed value correctly.
08-22-2012 12:27 AM
Hi,
if the solution is found, please mark this post as solved !
Best regards,