12-12-2011 01:38 PM
On my FP, there are controls/indicators that are in the hidden state. I know that I can make them visible again with properties nodes. However, I am wondering is there a way to do it with just a few clicks?
Solved! Go to Solution.
12-12-2011 02:00 PM - edited 12-12-2011 02:01 PM
While in the development environment or the run-time?
In the development environment you can right-click on the terminal on the block diagram and select "Show Control". Unfortunately, you cannot select multiple controls/indicator on which to perform this action. I think there was an idea submitted to allow this, but I'm not sure.
In the run-time? No.
12-12-2011 02:19 PM
What looks are you ultimale looking for? You could use a tranparent boolean control over the top of the controls that you are looking to disable. when clicked you could move it out of the way.
12-12-2011 02:24 PM
I would like to do that during development. My program would cause controls to become invisible at the beginning and cause them to become visible one by one during the program flow. I am still in the debug phase, so I would stop the program and the controls would still be invisible. I guess there is no easy way to cause multiple controls to become visible at the same time :<. I did write a subvi to do that, but I wish that there is an easier way. Thanks!
12-12-2011 02:26 PM
Let's clarify terminology.
Your subject line talks about enabling controls, but your message talks about showing hidden controls which means two different things.
Enabling, disabling, disabling/graying are settings that determine whether a user can click on a control and how it looks if they can't.
Hidden means a user can't see a control on the front panel.
12-12-2011 02:28 PM
If there are more than a handfull of hidden objects, it would probably require less clicks to write a VI that gets all control refs and set them all visable than to find each and do the "show".
Ben
12-12-2011 02:30 PM
My suggestion could be used only instead of a transparent Boolean use one that is the same color as the background and move it when your condition is met. Moving a control is easy. This would make it seem that you enabled or made visible all of the controls at once but you only need to move one control to get the response that you are looking for.
12-12-2011 02:32 PM - edited 12-12-2011 02:32 PM
You can change the visibility of multiple controls at once.
Make an array of controls references to each of the controls you want to change. Feed that array into a For Loop with auto-indexing turned on and going to a property node for the Visible? property. Wire the reference wire into that.
12-12-2011 02:37 PM
Raven's fan method is going to be the easy way to do what you are looking to do. You can keep seperate reference arrays so that you have the grouped in the order that you want them to turn on and off.
12-12-2011 02:57 PM
You are right. I used the wrong term. I meant hidden.