12-16-2011 04:01 PM
I made a ring menu control for various machine types, where the menu items are all just names. However, depending on which machine it is, I want to be able to associate a number with the machine, such as 0.1, 0.2, 0.3...so I can use this number in a calculation later on in my program.
How can I go about doing this?
Many thanks and kudos to anyone who can help.
12-16-2011 04:11 PM
A menu ring control is a U16 numeric with a fancy cover on the front panel. If you do not allow undefined items you can probably do some simple math on the ring value to get your machine number. For the example you listed ( 0.1, 0.2, 0.3, ...) you could use machine# = (ring + 1)/10.
Lynn
12-16-2011 04:15 PM
12-16-2011 04:20 PM
Change the ring control to a double, uncheck Sequential Values and you can type in floating point numbers like 0.1,0.2 etc