LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can the display properties of disabled menu ring items be modified?

I have a cluster containing 9 menu rings, each containing sorted lists with enabled items at the top and disabled items below. The default behavior for displaying disabled items is to desaturate the text color. (I'm referring to the control display, not the drop-down menu display which also grays out disabled items.) In this particular application I would like to make my own choice for the text color of disabled items but I can't find any properties that give me that control. The reason for wanting this is that sometimes the menu rings serve as indicators displaying non-selectable values, and it is at those times that I'd like high-contrast text to still be displayed.

The old trick of using a second set of faux controls on top of the original controls is one cumbersome solution I thought of. A second option I like a little better would be to re-enable the displayed item temporarily until a mouse down event was detected on one of the menu rings. However, I'm holding off for a possibly better solution from the forum where I can apply my own choice of text color to disabled items.

Thanks!

Larry
0 Kudos
Message 1 of 3
(2,855 Views)

@Larry Stanos wrote:
A second option I like a little better would be to re-enable the displayed item temporarily until a mouse down event was detected on one of the menu rings.

Yes, this is probably the way to go. I would use mouse enter/mouse leave. Mouse down and value change won't disable the items in time. See attached (LabVIEW 7.0)
Message 2 of 3
(2,840 Views)
altenbach,

Thanks for the advice re: mouse leave/enter versus mouse down and for the demo! This will work just fine. I will toggle the RingText.TextColor property as well when I reset the DisabledItems[] property to achieve the desired effect. Thanks!

Larry
0 Kudos
Message 3 of 3
(2,823 Views)