Graphic component box class

版本 1.0.0 (57.0 KB) 作者: Dan Dolan
This class assists programmatic creation of graphical user interfaces.
3.0 次下载
更新时间 2025/7/29

查看许可证

This object class allows rapid, programmatic creation of graphical user interfaces. Rather than manually drawing a dialog box in the App Designer, graphical components are added to the box, rastering from left to right in rows stacked from top to bottom. This process allows user to focus on what the dialog box does rather than how it looks. JavaScript components are used exclusively (no legacy uicontrols) for compatiability with MATLAB 2025a and all future releases, as well as previous releases using the new desktop.
Components are automatically sized for a particular amount of content. The sizing process combines specified width (number of characters that must fit) with the current font settings. Fonts can be changed to enhance visibility, e.g. the same dialog box can be generated at different font sizes with minimal effort.
Several static methods illustrate how this class can be used.
  • "demonstrate" provides a summary of all the components supported by this class.
  • "createExample" generates and displays one of several example functions that generate a specific component box.
Feedback is greatly appreciated.

引用格式

Dan Dolan (2025). Graphic component box class (https://ww2.mathworks.cn/matlabcentral/fileexchange/181641-graphic-component-box-class), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2025a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签
gui

Community Treasure Hunt

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

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