How to make Tabs in Matlab GUI without using GUIDE?

 채택된 답변

ES
ES 2017년 6월 27일
uitab
Example:
fHdl = figure;
objTbGrp = uitabgroup('Parent', fHdl);
objTab = uitab('Parent', objTbGrp, 'Title', 'TAB 1 HEADING');
objTab = uitab('Parent', objTbGrp, 'Title', 'TAB 2 HEADING');

댓글 수: 2

do you know how to make references on different guide elements to different tabs. for instance, one push button is placed on the first tab and another push button on the second tab?
Thank you, Aleksandar Petrov
@Aleksandar Petrov: allocate the tab handles to an array, and refer to those handles when defining the GUI elements (e.g. using the parent property, or as the first argument of many plotting functions).

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 App Building에 대해 자세히 알아보기

질문:

2017년 6월 27일

댓글:

2017년 6월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by