Graphic component box class
Version 1.0.0 (57 KB) by
Dan Dolan
This class assists programmatic creation of graphical user interfaces.
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.
Cite As
Dan Dolan (2025). Graphic component box class (https://uk.mathworks.com/matlabcentral/fileexchange/181641-graphic-component-box-class), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2025a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
@ComponentBox
@ComponentBox/examples
@ComponentBox/private
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
