LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enable an item in menu ring

Good Morning
 
I have problem in enabling a particular item in menu ring.
 
I have disabled few items in the ring control using the Property node[Disabled Items]. I want to enable those disabled items one by one(whenever i want)
 
Thanks
0 Kudos
Message 1 of 14
(4,532 Views)
Hi Veeru

Just use the property node [Disabled Items] again, but remove the element you want to enable from the array.

Daniel

0 Kudos
Message 2 of 14
(4,530 Views)

Thanks Daniel

You mean removing the element from an array.(We can do using the Insert and delete lement from array)

I have programmed in a way,there is separate button for each item in the menu ring.By pressing a button the corresponding disabled items needs to be enabled.

Thanks

0 Kudos
Message 3 of 14
(4,523 Views)
The [DisabledItems] property is an array. If you want to disable all elements, the array will be [0,1,2,...,# elements-1].
To enable element 2, search for '2' in the array and remove it. Write the array back to the [DisabledItems] property.
See code snippet.



Element to enable contains the index of the ring item to enable.




Message Edited by dan_u on 07-23-2008 10:56 AM
Message 4 of 14
(4,518 Views)
Thanks Daniel
 
Ur ex works very fine for me
Thanks
0 Kudos
Message 5 of 14
(4,497 Views)
hi
 
i have difficulty to add an item to ring control.
 
In the attached vi, i am trying to add and delete an item in menu ring.Deleting item part,i have used because just i like to delete an item by specifying the indx number.
 
In the add part i have problem,pls help me with this
0 Kudos
Message 6 of 14
(4,476 Views)

Try the attached vi. You needed a stop event, a shift register to update the ring items and a way to index adding new elements.

R

Message 7 of 14
(4,474 Views)
Thanks Joe
0 Kudos
Message 8 of 14
(4,471 Views)

Joe

Sorry,sometimes it is not deleting the correct item(when i checked in the properties[Edit Items>>sequential values is getting unticked automatically even if we set in tick)]

Thanks

0 Kudos
Message 9 of 14
(4,469 Views)

OOps.. Sorry.. you can't have the same number twice.

Now has a warning and will not duplicate numbers.

R

0 Kudos
Message 10 of 14
(4,465 Views)