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
  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