LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make visible and invisble the 'Decal Image' programatically?

Hi All,

 

I do want to make invisible the decal images of boolean controls.

How I can do this programatically?

 

Is there any property node is available in scripting?

 

Thank you,

Yogesh Redemptor

Regards,
Yogesh Redemptor
0 Kudos
Message 1 of 15
(3,832 Views)

Hi Yogesh,

 

You can use the paintbrush tool in the Tools Palette to set colours of front panel objects. To open the tools palette navigate to "View -> Tools Palette". You can then use the paintbrush by selecting a colour and left clicking on the control you wish to change.

 

The screenshot attached shows how to set the current colour to transparent.

 

trans.png

 

Many thanks,

Eden S
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 2 of 15
(3,822 Views)

Eden,

 

Yogesh wants to do this programmatically.

How I can do this programatically?

 

George Zou
0 Kudos
Message 3 of 15
(3,799 Views)

You will need to "cheat" on this one since you can't Show/Hide the glyph at run time.  The simplest means would be to have two buttons one with the glyph one without one off screen and swap their positions when you want to change appearance.  Handle both value change events in the same case.


"Should be" isn't "Is" -Jay
Message 4 of 15
(3,788 Views)

Edit - Jeff's answer was better than mine.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 15
(3,787 Views)

@JÞB wrote:

You will need to "cheat" on this one since you can't Show/Hide the glyph at run time.  The simplest means would be to have two buttons one with the glyph one without one off screen and swap their positions when you want to change appearance.  Handle both value change events in the same case.


Could you also have them in the same place and hide/show them as needed?  All you need then is a boolean and its NOT to control the show/hide properties?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 15
(3,782 Views)

@billko wrote:

@JÞB wrote:

You will need to "cheat" on this one since you can't Show/Hide the glyph at run time.  The simplest means would be to have two buttons one with the glyph one without one off screen and swap their positions when you want to change appearance.  Handle both value change events in the same case.


Could you also have them in the same place and hide/show them as needed?  All you need then is a boolean and its NOT to control the show/hide properties?


Yes, that wouls be what I would recommend.

 

 Yet another alternative is to make your button transparent and place a picture control under it. You can then change the picture to whatever you want and you have a single button to manage in terms of the events.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 7 of 15
(3,772 Views)
Show hide might have some trouble dropping through the top one to hit the bottom when the top is hidden .)

"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 15
(3,767 Views)

Personally I like to use invisible Tab controls instead of futzing with positions and visibility. 

0 Kudos
Message 9 of 15
(3,757 Views)
I just hate tabs. Especially when I might hands off refs to objects on tabs. Too many bad memory of refs going stale when the tab changed. Maybe that's better now but, I still avoid them.

"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 15
(3,749 Views)