03-16-2020 10:03 AM - edited 03-16-2020 10:04 AM
Hi RHutchings,
@RHutchings wrote:
As clear as I can say it, I have 6 textboxes that I would like to have hidden until I need to edit one.
Then why do you provide an example VI WITHOUT any textbox?
One possible answer to your requirement:
(German LabVIEW: "Optionsfelder" = radiobutton, "Sichtbar" = visible)
03-16-2020 12:15 PM - edited 03-16-2020 12:20 PM
Of course it seems silly to only show the selected item, because how are you even going to select something else?
Still, this will do what you want (only make the currently selected item visible):
Of course you can easily change the property node to e.g. the "label visibility" or "boolean text" visibility. Same difference.
03-16-2020 12:27 PM
This is what I was hoping for. The text boxes are rarely needed in my program and take up a lot of space. Most of the time, I don't want to see any. That will be the next hurdle.
03-16-2020 12:33 PM
This works very well thank you.
03-16-2020 12:34 PM
@RHutchings wrote:
This is what I was hoping for. The text boxes are rarely needed in my program and take up a lot of space. Most of the time, I don't want to see any. That will be the next hurdle.
Put them on a different tab, for example. Just hiding them is not that great, because you still need to keep their "lot of" space reserved for the occasions where they are visible. At least combine them into a cluster, so you can autoindex over their controls[] references based on the radiobutton value. HOw about using only a single textbox and change the contents depending on state?
03-16-2020 12:41 PM
No, this one doesn't work at all. It hides the radio buttons. That's not what I want at all.
03-16-2020 12:48 PM
@RHutchings wrote:
No, this one doesn't work at all. It hides the radio buttons. That's not what I want at all.
Of course it "works", it just doesn't do what you want. 😉
There were no strings in the attachment of your original posts. If you want help with strings, attach a VI that contains all elements you need help with!
(Did you read my later messages?)
03-16-2020 01:00 PM
Here's one possible idea. See if it can give you something to start....
(Note that the cluster order matters, of course, so make sure they match)
03-16-2020 03:27 PM - edited 03-16-2020 03:37 PM
This is doing what I want. Thank you
03-16-2020 03:44 PM - edited 03-16-2020 03:46 PM
@RHutchings wrote:
This is doing what I want. Thank you
It is cleaner to keep the container visible, because the space is wasted anyway. Here's all you need to do: