How do I change the order of objects in the App Designer component browser?
36 次查看(过去 30 天)
显示 更早的评论
How do I change the order of objects in the App designer component browser? Is it possible to reorder items in the same container?
采纳的回答
MathWorks Support Team
2021-7-2
编辑:MathWorks Support Team
2021-7-2
The component browser will update when items are moved inside others. If you drag a "UIAxes" object into a tab, it should appear under that tab in the component browser.
You can also select another tab by clicking on it in the design view.
Prior to MATLAB R2020b, there was no way to reorder objects in the component browser itself. The objects in the component browser are ordered based on the sequence in which they were added to the containing object.
Starting in MATLAB R2020b, you can reorder the objects in the component browser using the "Reorder" tool.
3 个评论
Mario Malic
2020-9-9
For me, it's useful, because when you're entering a field value, clicking tab will move the selection to the next field value in the component browser. So, kinda makes sense to reorder.
Jonas
2023-3-27
it is also possible to drag components in the Component Browser to their new location. In my case, the Tab Order was the upside down version of the Tab sequence
更多回答(3 个)
Leonardo von Lerchenfeld
2018-6-21
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 个评论
Mario Malic
2020-8-23
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
2020-10-2
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
2019-6-13
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 个评论
Adam Danz
2020-8-16
编辑:Adam Danz
2020-9-20
Update: Starting in Matlab r2020b, change the stack order of UI components in App Designer using the reorder tool (see release notes).
Adam Danz
2020-11-28
For Matlab r2020b and later, the stack order of UI components can be changed using the reorder tool (see release notes).

0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!