필터 지우기
필터 지우기

How to get list of tags to all components of a GUI?

조회 수: 6 (최근 30일)
KAE
KAE 2018년 2월 23일
편집: KAE 2018년 2월 23일
For an existing complex GUI, I would like to know the tag for every component that it contains. I have tried the following, but it skips some components such as pushbuttons in a uipanel, though it does list the tag name for the uipanel itself. I suspect the returned tags are only for the children of the GUI figure, but not for the children's children.
hFig = findall(groot, 'type', 'figure') % Get handle to GUI figure
tagList = sort(get(allchild(hFig), 'tag')) % Should return tag names for all GUI components but some are missing
  댓글 수: 1
KAE
KAE 2018년 2월 23일
편집: KAE 2018년 2월 23일
I just found Yair Altman's uuinspect which looks useful for checking tags of all GUI components.

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

답변 (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