02-21-2011 04:10 PM
Hello,
I have a ring that I programatically load the the string array that defines the items in the ring for the next selections that I want the user to pick from. How do I programmatically have the new items in the list show up as if the user clicked on the down arrow on the right side of the ring?
Solved! Go to Solution.
02-21-2011 05:22 PM
Probably I am thinking that you may want to use dynamic events. Value Signaling can be used to invoke a event and then in that event check the value of the ring for the next selection and use Strings And Values[] property to update the text in the ring to reflect the next selection.
Hope this makes sense.
02-22-2011 05:43 AM
Just wire the item number of the list that you want to show into the terminal (or a local variable).
Each item in the ring has an associated number - if you wire in that number, the item is displayed.
Ian
02-22-2011 06:38 AM
Hello,
You are correct about wiring a value to the value property, however this only shows a single items. How do I see all of the items in the rings?
02-22-2011 06:45 AM
The property node 'Strings[]' will output an array of strings with all of the items shown.
Is that what you are trying to get?
Ian
02-22-2011 07:23 AM
Hello,
The property node strings[] is what is used to define the items in the ring. What I want to do is to see all of the items in the ring. Just as if someone used the mouse to click on the down arrow on the right side of a menu ring.
02-22-2011 07:41 AM
From a post in 2009:
02-22-2011 08:02 AM
Hello,
Thanks for the answer, Have a nice day!
02-22-2011 08:46 AM - edited 02-22-2011 08:55 AM
Now that I understand what you want to do, I can offer a solution/work around. Pictures would have helped a lot here!
See the attached vi (in V8.5) which uses the info from here and here to move the mouse onto the control and click the arrow. Excercise caution if using this!
Use will require better control over the origin (i.e. 0,0 coordinates) of the front panel and perhaps the ability to return the mouse to the original position after the ring has been clicked.
(Edit: This will only work on Windows)
Is that what you wanted?
Ian
02-22-2011 09:02 AM
Sorry - duff example. This version runs a bit better.