BorderLayout

版本 1.1.0.1 (4.3 KB) 作者: Brian Cody
Simple layout manager for GUIs designed to mimic the Java BorderLayout.
1.4K 次下载
更新时间 2016/9/1

查看许可证

编者注: 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.

引用格式

Brian Cody (2024). BorderLayout (https://www.mathworks.com/matlabcentral/fileexchange/18577-borderlayout), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 App Building 的更多信息
致谢

参考作品: MATLAB GUI Makeover

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.1

Updated license

1.1.0.0

Updated copyright.

1.0.0.0

Updating category.