How to get list of tags to all components of a GUI?
조회 수: 6 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!