LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with menu ring or listbox control.

Hi,

I would like a menu ring style of control that does the following. Initially, items will be put into the control through a string array. That is no problem. But,in addition to being able to select any of the existing items, I would like the user to be able to enter a new item. Is this possible with any of the menu or listbox controls? I prefer the menu type controls as I like how when you click on the control you get a pop up of the items in the list, as opposed to the listbox where you have to scroll. Thanks for any help.
0 Kudos
Message 1 of 9
(3,761 Views)
As well as you fill the menu ring or listbox with an array of strings, you can manage to change this string and feed the property again, using shift registers should be easy, but you may need an add button, i mean you can't(correct me if i'm wrong) directly write into the listbox at runtime.
Hope this helps
0 Kudos
Message 2 of 9
(3,761 Views)
Hi Sal,
yes it is possible.
You should use the property Strings[] of your menu ring.
I attach a simple vi that lets you insert new items at specific index in a menu ring.

Good luck,
Alberto
Message 3 of 9
(3,761 Views)
Not as such, but one alternative would be a combination of the menu ring and
a string. Place the string above the menu ring. When people select something
from the menu ring it's copied to the string and selected. When people type
something into the string, it's added to the menu ring if it's not already
there and again it's selected.

Bear in mind though that if a menu ring gets too large I suspect a scrollbar
will appear in it when it's popped up.

sal wrote in message
news:50650000000800000058200000-991728092000@quiq.com...
> Hi,
>
> I would like a menu ring style of control that does the following.
> Initially, items will be put into the control through a string array.
> That is no problem. But,in addition to being able to select any of
> the existi
ng items, I would like the user to be able to enter a new
> item. Is this possible with any of the menu or listbox controls? I
> prefer the menu type controls as I like how when you click on the
> control you get a pop up of the items in the list, as opposed to the
> listbox where you have to scroll. Thanks for any help.
0 Kudos
Message 4 of 9
(3,761 Views)
In the above ex vi,is it possible to delete all the content in the ring when everytime starting the program
 
Thanks
0 Kudos
Message 5 of 9
(3,348 Views)
Hi Veeru,

You want to clear the content in the ring everytime the program starts. Can I ask you why you would to do that?

Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 6 of 9
(3,323 Views)
Thanks for ur reply karunya
 
The reason for deleting the contents in the ring control is, i like to create a ring control(sub) that is dependent on other ring control(main).so whenever i add something in the ring control(main) it adds in the ring control(sub). when i stopped and starting it aging the ring control(sub) should be empty.
 
Thanks
 
0 Kudos
Message 7 of 9
(3,315 Views)
Hi Veeru,

This can be done. There is an excellent example created by another customer on this discussion forum. The VI can be used in your subVI. Since it gets inputs from the Main VI and then creates the ring control, the ring control will always be empty until then and every time you run it.

Hope this helps!

Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 8 of 9
(3,291 Views)
Thanks karunya
0 Kudos
Message 9 of 9
(3,273 Views)