LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dialog ring unselect all items

Hi,

I have a dialog ring control and initially I want to unselect all items of it. How can I do it? Is it possible?

I am using the value property for this control and I associate a value of -1 but it doesn't work.

Thanks,

ToNi.
0 Kudos
Message 1 of 6
(3,140 Views)

A dialog ring always selects one of possibly several options, so I am not sure exactly what you mean.

Of course you still have full programmatic control of the items. For example, you could make one of them an empty string, then select it programmatically. You can also dynamically modify the items via the "strings" property, for example write initially an array with a single empty string to this property and later populate it with the desired items.

Whatever you want to do is certainly possible! 🙂

If this is not exactly what you mean or If you want more detailed instructions, please attach a small example of your code.

Also, If you wire a "-1" to it, you miust ensure that your data type allows negative numbers. By default, it is a U16, which cannot be negative.

Message Edited by altenbach on 09-10-2005 08:36 AM

0 Kudos
Message 2 of 6
(3,140 Views)
Yes, It is a good idea to put inside the dialog ring control an item containing an single empty string but... i don't want this item shows the mark of checked when initially it is selected or the user selects it, but wheter I want the other items shows a its checked mark when the user select them.

Thanks,

ToNi.
0 Kudos
Message 3 of 6
(3,133 Views)

I think you are trying to use a dialog ring beyond its intended purpose. A ring ALWAYS must contain a value, so (exactly) one item is always active. There is no mechnism to allow nothing to be selected.

Of course, you could name one of the items "No Selection", then select it to indicate that fact 😉

Maybe you could replace your dialog ring with a dialog listbox. Here you can select e.g. the mode "0 or 1 item", allowing 0 items to be selected if desired.

0 Kudos
Message 4 of 6
(3,128 Views)
Ok, but in a control dialog ring how can I make not visible the mark of item checked? is it possible?

Thanks,

ToNi.
0 Kudos
Message 5 of 6
(3,121 Views)

You can't. It's not possible.

But what is it that you are trying to do? Why is the checkmark a problem? The idea of the check is to tell the operator what item is currently selected. If you have a "No Selection Made" item to indicate that the operator need to make a selection, and that item has a check next to it when the menu is open, that's a good thing...

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 6
(3,117 Views)