LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Gray out front panel

Hi Everyone,

 

Simple question: We can disable and grey out a control, that’s easy. How can I grey out the whole front panel?

 

Any ideas?

 

Thanx

 

Attila

0 Kudos
Message 1 of 11
(6,014 Views)

Hi Atilla,

you can use a function to get all control refereces and go through a for loop to disable all controls. Another way is to place all your controls into a tab control or a cluster and disable this.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 11
(6,011 Views)

Mike,

 

Yes I could do that, I just though there is a better alternative, because I have lots of different controls and decorations as well and I have do it quite often in my program so I do not want to slow it down with this...

0 Kudos
Message 3 of 11
(6,007 Views)

 Hi AttilaZ,

 

I found another forum post with some handy solutions to this.

 

However, there isn't just a property node which could do this im afraid.

 

Let me know what you think or otherwise, maybe post more information about your application so we can discuss further.

 

Regards, 

 


 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
Message 4 of 11
(6,002 Views)

Thanks Hillman!

 

This link was very helpful.

 

This is very clever:
“Lazy method...make a transparent boolean to cover real estate to 'lock'.  Condition which disables controls makes this boolean 'visible'...and user can't get to other controls.  To enable other controls, make covering boolean 'invisible'.  No loops, no fuss.”

 

I would use it but how can I make a transparent boolean?

0 Kudos
Message 5 of 11
(5,981 Views)

Another approach....

 

For each FP that you want to greyout, drag all of the controls onto a single page, trasnparent tab control.

 

Use the "disable" property of the single page tab control to control they grey-out setting.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 11
(5,979 Views)

Thanks Ben!

 

I was thinking of doing that but I decided not to because I have so many controls and decorations as well where the order is important like which one is at front and behind and I would need to reorganize all this so I am looking for a simple solution to disable and grey out the whole front panel. To make a transparent boolean (which could cover all these controls) looks to me the way to go but how can I make a boolean transparent. I heard of transparent png pictures too but I don't know how to do that one as well...

0 Kudos
Message 7 of 11
(5,975 Views)

ctrl-a (select all) followed by an de-select of the tab control should let you grab everything at once and drag all onto the tab contorl.

 

For transparent control and indicators, start with object on the "classic" palette. They are easier to re-color. Us the paint brush tool and select the "T" for transparent and paint away.

 

The transparent jpgs are another story,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 11
(5,971 Views)

Hi,

 

Ive always used to invisable button trick - but with LV, as always, so many different but correct solutions.

 

To make the button visable (invisable). Right click on control, (block diagram), create property node, select visable, change to write, and wire a constant false to it.

 

Regards,

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 9 of 11
(5,968 Views)

Thank you guys!

 

I could make the tab transparent, cover all the front panel objects and it just works perfectly!!

 

Attila

0 Kudos
Message 10 of 11
(5,954 Views)