I am attaching a control (which i think is a enum but i am not sure). I would like to know how to create one like that. It sends out double values equal to the ones chosen in the from the pull down list.
I don't think you are able to do this - the enumerated type control data type is unsigned byte, unsigned word, or unsigned long. You should be able to use the integer values of a standard enum control to drive a case structure or index an array to select the values that will correspond to the enum list.
Someone did it, though. Look at the example. I thought I knew what that was, but I don't. I can think of about 3 ways to fake the control that the original poster has, but it doesn't seem to be any of the above.
At first I thought it was a text ring. What's missing is the right click dialog of Add Item After and Add Item Before that I would expect if it was a text ring or an enum. No matter what, the value doesn't change no matter which item is selected.
I took another look at this, I admit I don't know how this was done - if you change the format and precision to say, SI notation the value does track the listed value. The context help indicates it is from an HP instrument driver.
Yes it is from an HP Instrument Driver (HP816x). But i wanted to know how to create one like that. But i havent still figured out how to create that control.
JPD, thanks for pointing that out. That CTL was driving me up the wall -- it's good to have my suspicion confirmed that it's an example of an unreleased/unofficial LV object.