How do I change the order of objects in the App Designer component browser?
Ältere Kommentare anzeigen
How do I change the order of objects in the App designer component browser? Is it possible to reorder items in the same container?
Akzeptierte Antwort
Weitere Antworten (3)
Leonardo von Lerchenfeld
am 21 Jun. 2018
11 Stimmen
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 Kommentare
Mario Malic
am 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
am 2 Okt. 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
am 13 Jun. 2019
7 Stimmen
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 Kommentare
Subhamoy Saha
am 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
am 28 Nov. 2020
0 Stimmen
For Matlab r2020b and later, the stack order of UI components can be changed using the reorder tool (see release notes).

Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!