08-03-2009 03:13 PM
With the included controls like the OK boolean you can change the true or false color by going to Properties >> Apperance >>Colors. Then click the color box to change the state color. Is it possible to do the same with a custom boolean control?
I have searched some and it does not sound like it is possible, but I figured that I would ask. I have a diagram where I used some pipes from the DSC module image navigator to make some boolean pipes. I just changed the properties for the different colors then pasted them into a boolean control for true/false cases. But now I am thinking of changing the colors from gray/red to gray/green. Is there an easier way than just starting over and making new booleans with the desired colors? Or is there a better trick for custom controls I don't know?
Thanks
Solved! Go to Solution.
08-05-2009 01:28 PM
08-05-2009 02:01 PM
On the booleans included with LabVIEW that works great. But when I create a custom boolean that does not work. So I am asking about custom booleans.
Thanks
08-05-2009 02:14 PM
08-05-2009 02:16 PM
08-05-2009 02:21 PM
08-05-2009 05:29 PM
Hello Jeff,
I can't use strict type def's because each piece of pipe is a different shape/size. I attached a sample control that shows what I am doing. Are there pre-made boolean pipes somewhere?
I wish there was a semi-strict type def so only the true/false images were strict but dimensions were not.
08-05-2009 09:50 PM
08-06-2009 09:50 AM
Here is a sample of the control as a type def and a vi with the Colors(4) property cluster. I must be doing this wrong or not explaining it correctly. So if you could look at the files and be able straighten me out I would appreciate it.
08-06-2009 10:12 AM
You are not doing something wrong, this is just a limitation of labview that has frustrated me for years. The colors array only works with decorations, which are very limited. If you import an image to the true/false images That are not labView decorations then the color property are not used. You do have one option which I cahe done to some suscess: Import a semitransparent overlay as a decal over a solid decoration color, then change the color[] array and all is good.