09-18-2008 09:26 AM
All, I would like to make a color box, which is part of a cluster in an array, transparent programmatically. Instead of appearing transparent, it shows up with a LARGE "T" inside the color box, with a white background. Because it is part of a cluster within an array, it will not work to use a property node... and because I would like to programmatically change the color, having it permanenty transparent (as proposed on another discussion topic) will also not work. Can someone please help me turn a color box transparent programmatically?
Thanks.
Anthony
09-18-2008 02:47 PM
I ran into this in the past, I did not figure a way to remove the 'T" but did come up with a workaround (not quite as felxable) I mad a picture box with numerous colors and one transparent picture in it. I didnt get 2^24 colors but did make a 16 color + transparent version which did the job well.
09-18-2008 03:08 PM
falkpl wrote:I ran into this in the past, I did not figure a way to remove the 'T" but did come up with a workaround (not quite as felxable) I mad a picture box with numerous colors and one transparent picture in it. I didnt get 2^24 colors but did make a 16 color + transparent version which did the job well.
Very clever Paul!
Kudos for sharing that idea.
Ben
09-19-2008 08:36 AM
Another method is to use the background color from the System Label. This morphs itself to whatever color/gradient is behind it, becoming effectively transparent. Getting this "color" into a color box is tricky, however, since you can't select it. You have two choices:
09-19-2008 09:54 AM
09-22-2008 08:13 AM
In my above example, the property nodes are only used to find the color (16777271). The colorbox itself can be set in any fashion at that point, so will work well in a cluster in an array.
09-22-2008 08:29 AM
That is indeed an interesting trick. Thanks I misunderstood where you ware going with the property node. Strange that the U32 and the colorbox values are different in there display inside of a colkorbox indicator. I will have to remember this one. Thank you.
09-22-2008 05:44 PM
09-22-2008 05:50 PM
Hi G-Money, this is the problem, the color box DOES NOT disappear in LV 8.6 when you wire a Transparent (like your T) into the cluster... your front panel will show a big T in it. I believe this is a LabVIEW bug that should be investigated...
In the meanwhile, I have used Paul's response as a work around, thanks for the input Paul!!
Anthony
09-22-2008 07:39 PM
I think I now understand colorboxes (I have worked with labview for over 10 years and am still learning). A colorbox is a strange implementation. I always thought that it was a RGB low 3 bytes colormap and all bits set would be a special transparent color, BUT I WAS WRONG. 2^24 (24777216) is mapped to a special color White with a T in it. The values above 24777216 are used for additional special colors including a transparent value (24777271) other special colors in this high bit (>2^24) region include system colors. Now I just need to figure out how to exploit this new info. Can this area be used for better color skinning of applications like matching XP and Vista color schemes? Make special alarming colors or anything else?