How do I change the order of objects in the App Designer component browser?

223 ビュー (過去 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
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.
  4 件のコメント
Mario Malic
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.

サインインしてコメントする。

その他の回答 (3 件)

Leonardo von Lerchenfeld
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.)
  3 件のコメント
Robert
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
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
  6 件のコメント
胜利 周
胜利 周 2021 年 9 月 7 日
your application is very good, Thanks

サインインしてコメントする。


Adam Danz
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).
For earlier releases, see CallumP's function on the file exchange.

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by