Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I have a selection of list boxes that are opened / closed depending on the push of a button.
I want to be able to make it so when I click the button to open another list box, all other list boxes close.
So essentially I only ever have one list box open at a time.
Any suggestions?
Thanks
In my way of thinking the Button Actions might help you out:
By clicking the Button you should add the Action that disables other ListBoxes.
You should have to add for every variable the new Action.
Hi
Try using a variable that is set by the button to the correct list box and then on each list box set the Show Conditional to the value for that list box as below.
Regards
Adrian
Hi Atoz,
I already have variable buttons to open and close each of my list boxes. I need to understand how I can have one variable / button that opens and closes for all of my list boxes though.
In my way of thinking the Button Actions might help you out:
By clicking the Button you should add the Action that disables other ListBoxes.
You should have to add for every variable the new Action.
The method MindaugasBacius explained, where each button would change the variables for all other list boxes to "off", is the way I would do it.
An alternative:
Put all the list boxes in the same location, completely overlapping. Make all the list boxes' depth controlled by a different variable, starting at 1. Create another variable, "masterDepth", starting at 1. Instead of turning on the corresponding list box when a button is clicked, those buttons would instead add 1 to the masterDepth variable, then set that list box's depth variable to the new masterDepth. That way, you are just moving the "selected" list box to the front, and you don't have to deal with hiding all the rest.