11-18-2005 01:33 PM
11-18-2005 02:15 PM - edited 11-18-2005 02:15 PM
" Is there anyway I can define individually as to what color should be related to each text in ring menu?"
Well not with a ring and not programatically.
The best I can suggest is a picture ring, see below.
Ben
Message Edited by Ben on 11-18-2005 02:16 PM
11-20-2005 02:26 AM
I can suggest a better looking solution, but it will be harder to implement (although much more diverse).
The suggestion invloves using another control to display the list of options, i.e. you click on your "ring" (which could be a disabled ring controlled through locals) and your ring control becomes visible . The ideal would be a listbox (which I have used in the past to create a combobox where the values change dynamically as you type), but that doesn't have control over the colors.
What you can use instead is a table. You can control the position of the table, the number of visible rows and the color of each row, and the only real problem I could find is that it seems you can't make the lines fully transparent and that the row doesn't highlight when you move over it (although that can also be handled).
By using references you can delegate all the work to a subVI, et voila, you have a colorful ring control.
11-20-2005 04:07 AM
11-20-2005 04:57 AM
Use a listbox instead of a ring (can be found in the List & Table palette). If LV 6.0 doesn't have it, you can use a table or an array.
@labview1958 wrote:
Is it possible to show or display the elements of the ring ALL the time?
11-20-2005 10:15 AM
11-20-2005 12:41 PM
Here's a very quick and simple example (7.0).
Further improvements would be ignoring mouse down events for the table's scrollbar, changing the cursor when it enters the table and maybe highlighting the table element the cursor points to. By dynamically registering for events, you can place all the code in a subVI, which will only need the references of the ring and the table as inputs, and which will detect the events on its own.
If you come up with something nice, why not post it?
11-21-2005 11:10 AM
Thanks tst,
I think that is an awesome work around way. I will see if I can make it better, I will post it right here in this post.