11-30-2010 10:42 AM
Hi all!
after years of inactivity on this board.... here I come again! ![]()
I have some "typedef enum", and I'd like to tie them at develop time to Ring controls. Is it possible?
Thanks!
Graziano
11-30-2010 11:15 AM
Graziano:
Welcome back!
Do you mean that you want to assign enum values to your ring items?
You can do that if you build the list for your ring in code, not in the UI editor. In the UI editor, just put down an empty ring, then in your code, before you display the panel, build the ring list using InsertListItem(), specifying an enum as the value. An enum is basically an int, which is the default data type for items in a ring control. See the CVI Help topic titled Programming with ring controls for more details.
11-30-2010 11:39 AM
Thank you AI S!
what I wanted, was to be able to link a particular typedef to a ring control, and, according to your answer, it is not possible.
As far as I know, in LabView, is possible to do such a stuff, you can connect an Enum control to a type definition, right?
Anyway, thanks!
Graziano