Tab and subtabs

版本 1.0.0.0 (5.8 KB) 作者: Micha³ Steuden
Tab with subtabs and deeper
1.6K 次下载
更新时间 2006/3/10

无许可证

This file will help you to build as many levels of GUI tabs as you wish
Files:
----------------------------------
Example:
tabandsubtabs.fig
tabandsubtabs.m
---------------------------------
hideorshowcontrols.m
This function turns on/off controls with the specified value in the 'UserData'.
Place this function in your figure.m and insert the numbers in the uicontrols section ('Userdata') which will indicate connections between tabs. Click on uicontrol>>PropertyInspector>>Userdata>>set value

EXAMPLE:
to turn off desired controls with the 'UserData'=[22; 213 ;25 ;214; 217; 2]
turn off all uicontrols with '2' : hideorshowcontrols(2,'off');

turn off all uicontrols with '21': hideorshowcontrols(21,'off');

%turn off only uicontrol '213' : hideorshowcontrols(213,'off');

%turn on only '2' : hideorshowcontrols(20,'on');

%turn on all except '22' and '2' : hideorshowcontrols([21 25],'on');

Finaly you can use this method to set another properties.

引用格式

Micha³ Steuden (2025). Tab and subtabs (https://www.mathworks.com/matlabcentral/fileexchange/10239-tab-and-subtabs), MATLAB Central File Exchange. 检索时间: .

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

启发作品: Simple Optimized GUI Tabs

Community Treasure Hunt

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

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

last 5 lines of hideorshowcontrols.m were unnecessary