GridBagLayout

Versione 2.0.0.0 (75 KB) da Jason
A MATLAB class which controls layout and resize of a figure/uipanel/uicontainer.
3,3K download
Aggiornato 2 mag 2017

Visualizza la licenza

Nota dell'editore: 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').

Cita come

Jason (2024). GridBagLayout (https://www.mathworks.com/matlabcentral/fileexchange/22968-gridbaglayout), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2015b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su App Building in Help Center e MATLAB Answers
Riconoscimenti

Ispirato: UISIGNALBUILDER, GridLayout, UISignalBuilder2

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
2.0.0.0

Add new ScrollableGridBagLayout for layouts that are bigger than the size available.

1.8.0.0

Update for new MATLAB Graphics system. Fix bug when making the UI visible for the first time.

1.7.0.0

Handle the user-defined Max < default Min case by not allowing the Minimum values to ever be greater than the corresponding Maximum values.

1.6.0.0

Fix a bug with the use of UIPanel. Take into account the BorderWidth property when calculating the number of pixels available for the layout.

1.4.0.0

Make Axes positioning dependent on the ActivePositionProperty. Thanks for the catch Ryan.

1.3.0.0

Fix typos and Axes positioning.

1.2.0.0

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.

1.1.0.0

Removed log files that were not relevant or useful.

1.0.0.0