LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transparent image shows when grayed-out

I have customized a boolean control by adding a PNG button image that is partially transparent. Everything looks good unless I programmatically change the control to disabled and grayed.  Then the tranparency is faintly visible in contrast to the background panel.  Any ideas on how to fix this?
Message 1 of 8
(4,158 Views)
Can you post a screen shot of your VI, or an example of the behavior?

Robot wink
0 Kudos
Message 2 of 8
(4,155 Views)
Hi,

~Please post the customized control
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 3 of 8
(4,150 Views)
OK, here it is.  The problem occurs when I change the background color of a tab control.
Download All
0 Kudos
Message 4 of 8
(4,145 Views)
Yep, LabVIEW does not seem to retain the transparency (or the mask, or however it works) when the graphic is Disabled & Grayed. This seems like undesired behavior. The same thing happens with the built-in controls, like the Toggle Switch:



Temporary fix is to minimize the transparent area by making the extra space around the circle as small as possible, I guess.

Robot wink




Message Edited by LabViewGuruWannabe on 02-04-2008 10:49 PM
0 Kudos
Message 5 of 8
(4,112 Views)
One other possibility that would be a bit of a hack.  Make a copy of the button and turn it into an indicator.  Customize it so that you modify just the color of the button button so it looks like a greyed out version of your control button.  Drop it on the front panel and put it in front of your real button.  When you want to disable and grey the button, set the visibility of the dummy indicator to true.  If you want to enable the real button, set the visibiltiy of the dummy indicator to false.  I think having the indicator in front would effectively disable the mouse action on the real button.  If for some reason it doesn't, you could disable the real button, but not disable and grey.
Message 6 of 8
(4,109 Views)
This was reported to R&D (4I498U1W) for further investigation.  Another possible workaround is to use either the "System" or "Classic" style tab controls, as alpha blending appears to work correctly with them.
Message 7 of 8
(4,082 Views)

I had the same issue.  When I disabled and greyed out my button, the panel background color would show thru because the button would become transparent when disabled and greyed out.  To solve this, I disabled the button and manually greyed out the button text.  See attached screenshots.

0 Kudos
Message 8 of 8
(2,801 Views)