How to add minimize tool button in GUI ?
Show older comments
I have a GUI which has several charts/graphs to display. But I would like to add an GUI object whose function is to minimize /maximize or restore the graph/plot within the GUI using a button. How can I do it? I have seen the list of GUI components, none of them are relevant to what I am looking for. Is it possible to import new functionality from other development environments like Microsoft .Net /Visual Studio or JAVA to MATLAB.
1 Comment
Jan
on 8 Jul 2018
It depends on what "minimize /maximize or restore the graph/plot" exactly means. A button, which makes an axes object and all its children invisible`? This would be easy to implement.
Accepted Answer
More Answers (1)
Image Analyst
on 8 Jul 2018
0 votes
The GUI already comes with controls in its title bar for minimizing, maximizing, and normalizing the whole window.
If you want to minimize just one axes on the GUI, then it might be best to just put the entire axes control into a panel control and set the visibility property of the panel on or off. There are other ways but they're more complicated because a graph has lots of handles associated with it, not just one like a panel does.
Categories
Find more on Interactive Control and Callbacks 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!