How to get list of tags to all components of a GUI?
7 views (last 30 days)
Show older comments
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
Answers (0)
See Also
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!