From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-14-2018 05:08 PM - last edited on 08-16-2018 12:32 PM by Kristi_Martinez
Are there better ring control options? I'm looking for one that allows text input into the selection like a text string. I've found that when the standard ring control has focus, the up/down cursors are the only supported keyboard keys for navigation.
It would be great if you could start typing and it would navigate toward your choice.
Solved! Go to Solution.
08-16-2018 09:54 AM
CVI has a Combo Box custom control in toolslib. That might be what you're looking for.
If you want the quick-typing behavior but you'd rather restrict the selected item to one of the ones in the menu, look into the Hot Ring custom control instead.
Luis
08-16-2018 10:28 AM
Thanks, Luis, I'll take a look at both.
Btw, title of my post got completely mangled when I posted apparently. I suspect the dynamic auto-search replaced the text I had put into my title. It should have been "better ring controls".
08-16-2018 03:13 PM
Good suggestions. I've tried both and here are some notes.
The Hotring is only a ring control, so it's not apparent that text input can navigate the ring. It forbids input that is outside of the ring values just be nature that it has no true text input capability. Bulletproof, but not obvious what the navigation options are.
For my tastes, the Combobox is a better choice. A ring is created right next to the string control. So it's very obvious that the user is free to input text themselves. Cool! But I wish there were an attribute to disallow text entry that was outside of the valid ring values. Why not? I realize I can make my own callback on the string, do a lookup of the values and compare / disallow. That's a pain, and really should be baked in.
But thanks for the heads up on these! I always forget to peruse the custctrl folder.