Enable/Disable multiple objects in GUI

1 view (last 30 days)
Jeffrey
Jeffrey on 3 Apr 2014
Commented: Sean de Wolski on 3 Apr 2014
So I have a GUI with many, many objects. Two of them are popupmenus. I am writing a callback so that when you select an item from either popupmenu, it looks at BOTH popupmenus and determines from those values how to enable/disable the rest of the objects in the GUI.
I'm thinking that a two dimensional series of switches would be kind of messy. What seems cleaner is some kind of hash who's value is a vector of 1s and 0s that determine the enabling of the objects. Is there a shortcut way to take that vector and set the enabling in one command?
Thanks
Jeff

Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!