LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

better ring controls

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(2,949 Views)
Solution
Accepted by topic author ElectroLund

CVI has a Combo Box custom control in toolslib. That might be what you're looking for.

 

combobox.png

 

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

Message 2 of 4
(2,913 Views)

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".  Smiley Frustrated

0 Kudos
Message 3 of 4
(2,905 Views)

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.

0 Kudos
Message 4 of 4
(2,896 Views)