LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the Item List Color in Ring control

Solved!
Go to solution

Hi,

I tried to change the color of an item in a ring control using the following syntaxe

ReplaceListItem (MeshedTabHandle, MESHED_MATERIAL_LIST, 3, "\033fg0C0C0 SAVE", -2);  and I got the following result:

ItemColorRing.jpg

What did I wrong?

I'm using CVI2013 SP2

0 Kudos
Message 1 of 4
(3,660 Views)
Solution
Accepted by topic author Bertrand_ENAC

As far as I can understand, colouring elements can be done in list boxes only. The only option you have for ring controls is creating a separator line. Even SetRingItemAttribute does not list colouring option.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,631 Views)

In fact I just wanted to change the color to simulate a dimmed item, so SetRingItemAttribute is fine.

Thank you.

0 Kudos
Message 3 of 4
(3,626 Views)

You're welcome!



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 4
(3,622 Views)