GridBagLayout
Editor's Note: This file was selected as MATLAB Central Pick of the Week
layout.GridBagLayout and layout.ScrollableGridBagLayout are MATLAB classes which control layout and resize of a figure/uipanel/uicontainer. This class helps the MATLAB GUI developer design complex Graphical User Interfaces without the need for calculations or complex code for performing initial layouts or writing resize functions.
To get this to work in 2007b/2008a you can simply replace the calls to ishghandle(h, 'figure') with strcmp(get(h, 'type'), 'figure').
Cite As
Jason (2022). GridBagLayout (https://www.mathworks.com/matlabcentral/fileexchange/22968-gridbaglayout), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > App Building >
- MATLAB > App Building > Migrate GUIDE Apps >
Tags
Acknowledgements
Inspired: UISIGNALBUILDER, GridLayout, UISignalBuilder2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.