Clear Filters
Clear Filters

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

7 views (last 30 days)
KAE
KAE on 23 Feb 2018
Edited: KAE on 23 Feb 2018
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 Comment
KAE
KAE on 23 Feb 2018
Edited: KAE on 23 Feb 2018
I just found Yair Altman's uuinspect which looks useful for checking tags of all GUI components.

Sign in to comment.

Answers (0)

Categories

Find more on Dialog Boxes in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!