BorderLayout
Anmerkung des Herausgebers: This file was selected as MATLAB Central Pick of the Week
BorderLayout uses uipanels to create a simple layout manager for GUIs that is modeled after Java's BorderLayout. It allows you to carve up a figure window or uipanel parent into five regions: North, South, East, West, and Center. North and South have static pixel heights but vary their widths with the size of the parent. East and West have static pixel widths but vary their heights with the size of the parent. Center occupies the remaining space in the parent.
Since BorderLayouts can be nested inside each other, they can be used to construct professional looking GUIs in MATLAB.
Included in this submission are four files:
BorderLayout.m: The layout manager.
ExampleSimple.m: A small script that shows a single BorderLayout used in a figure window.
ExampleComplex.m: A small script that shows nested BorderLayouts inside a uipanel.
ExampleApplication.m: A simple application that makes use of BorderLayout as a layout manager.
Zitieren als
Brian Cody (2026). BorderLayout (https://de.mathworks.com/matlabcentral/fileexchange/18577-borderlayout), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > App Building >
Tags
Quellenangaben
Inspiriert von: MATLAB GUI Makeover
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
examples/
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.1.0.1 | Updated license |
||
| 1.1.0.0 | Updated copyright. |
||
| 1.0.0.0 | Updating category. |
