GridBagLayout
by Jason
13 Feb 2009
(Updated 16 Dec 2009)
A MATLAB class which controls layout and resize of a figure/uipanel/uicontainer.
|
Watch this File
|
| File Information |
| Description |
layout.GridBagLayout is a MATLAB class which controls 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'). |
| Acknowledgements |
This submission has inspired the following:
UISIGNALBUILDER, GridLayout
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 13 Feb 2009 |
Removed log files that were not relevant or useful. |
| 24 Mar 2009 |
Update layout method to better handle Axes using the 'OuterPosition' property so that Insets are not always necessary. This will use MATLAB's built-in axes spacing management.
Recapture HTML. |
| 28 Apr 2009 |
Fix typos and Axes positioning. |
| 29 Apr 2009 |
Make Axes positioning dependent on the ActivePositionProperty. Thanks for the catch Ryan. |
| 09 Oct 2009 |
Fix a bug with the use of UIPanel. Take into account the BorderWidth property when calculating the number of pixels available for the layout. |
| 16 Dec 2009 |
Handle the user-defined Max < default Min case by not allowing the Minimum values to ever be greater than the corresponding Maximum values. |
|
Contact us at files@mathworks.com