How to make Tabs in Matlab GUI without using GUIDE?

조회 수: 2 (최근 30일)
Aleksandar Petrov
Aleksandar Petrov 2017년 6월 27일
댓글: Stephen23 2017년 6월 27일
does someone know how to create 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
Aleksandar Petrov
Aleksandar Petrov 2017년 6월 27일
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
Stephen23
Stephen23 2017년 6월 27일
@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개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by