LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hide a control but still use it?

Ok so i ended up using two .gif pictures with slightly different hue's.  It looks very nice, but i can forsee having some difficulties accomplishing this in a large vi with many controls.  Is there any way to show a decorations index on the front pannel?  I could go through and document them but it would be nice if there were a simple way to do this.
Mark Mutton
Electrical Engineer
Download All
0 Kudos
Message 11 of 15
(1,342 Views)
If you're looking for just replacing the default picture for the control with a custom one, you can customize the picture for each state of the control. For the boolean example, there's 4 states: On, Off, In the process of being pushed but not on yet, and In the process of being depressed but not off yet. I've attached an example. I took a screen capture of my Noia extreme themed "OK" button in the on and off state, copied each and imported the pictures from the clipboard to replace the four default pictures of a simple boolean (use the classic ones to customize...they have less "stuff" to deal with). When you're in the customize "VI" for the control, click on the wrench and you'll enter well, I don't know what to call it, but it's the "Really Customize Mode" where you have access to all the graphics of all the states of the control and you can import from the clipboard or a file directly.

For the attached example, the background would obviously have to be white, but I haven't played around with different graphics types which might preserve the "transparent" color value of the background. There might be a way.

Hope this helped!
0 Kudos
Message 12 of 15
(1,326 Views)
Wow! i had no idea.  could you post the control in labview 8.0
Mark Mutton
Electrical Engineer
0 Kudos
Message 13 of 15
(1,320 Views)
0 Kudos
Message 14 of 15
(1,315 Views)
What you could do is build a Xcontrol that has a boolean as data type.
SO you can register for mouse enter, mouse leave and mouse down and mouse up events.
And change the picture (use a picture control as facade vi), accordingly. For the programmer you could have some properties for the different pictures.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 15 of 15
(1,302 Views)