04-05-2013 03:47 AM
I'm trying to populate a ring control (type def) but I've not found any way to do it. I have an extremely long list that I would like to put into a ring control and I want to do this such that it is 'hard coded' in the ring control. A delimited file (anything but a space) is what I would imagine should be easily imported into a ring or enum.
Does any one know how to do this or some other method for a long list of items?
04-05-2013 03:58 AM
04-05-2013 03:36 PM
Your suggestion is done at run-time, as far as I can tell. I do not want to require the file during run-time. After importing I'm wanting to save the type def and then be able to edit the items in the Properties dialog.
I'm ultimately trying to create a library for a sensor that has a lot of register adresses that will not change on the device. The register addresses are the items that I want to put in my typedef. If the above is not possible, is there any other alternative?
04-05-2013 05:07 PM
Is this any better?
04-05-2013 06:52 PM
Am i missing something here???? Why couldnt you just import the file to the Enum and then create a type def from the one that is populated????
04-07-2013 12:57 AM
Creating a type def from the ring in Gerd's code does work. Thanks both of you. Here is what I ended up doing: