How do I change the order of objects in the App Designer component browser?
Show older comments
How do I change the order of objects in the App designer component browser? Is it possible to reorder items in the same container?
Accepted Answer
More Answers (3)
Leonardo von Lerchenfeld
on 21 Jun 2018
11 votes
You can cut (CTRL + X) the objects and include them (CTRL+ V), then the objects will inserted at the end in the component list while maintaining their positions. Do this process in the order you like your objects. (I use MATLAB R2017a.)
2 Comments
Mario Malic
on 23 Aug 2020
For me it worked fine without breaking callbacks.
Just make sure to change the property names if you are assigning values from EditField.Value
Robert
on 2 Oct 2020
This works wonders, thank you! Keep in mind that when using panels or other containers, you have to select the panel/container before pasting, otherwise the parenting and positioning is incorrect.
CallumP
on 13 Jun 2019
7 votes
I've made an app that can do that. Might be a bit late for you but hopefully useful to others. It's here: https://uk.mathworks.com/matlabcentral/fileexchange/71838-hierarchyviewer
2 Comments
Subhamoy Saha
on 14 Aug 2020
You did really a great job CallumP!
Update: Starting in Matlab r2020b, change the stack order of UI components in App Designer using the reorder tool (see release notes).
Adam Danz
on 28 Nov 2020
0 votes
For Matlab r2020b and later, the stack order of UI components can be changed using the reorder tool (see release notes).

Categories
Find more on Develop Apps Using App Designer 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!