App designer panel order
12 次查看(过去 30 天)
显示 更早的评论
Hi,
I am designing an app in app designer.
I kept two panels in the app with panel1 on top of panel2 with only the name of panel1 visible (Im1).
Now, when I click on panel1, I expect it to bring the contents of panel1 to the front as in Im2. But panel1 doesn't come to the front when clicked and remains as in Im1.
Please suggest how I can bring panel1 to the front when clicked, without having to reorder the panel everytime I want to edit the contents of panel1. I am using MATLAB 2020 b and windows 10.
3 个评论
Mario Malic
2020-10-19
To reduce the occupied space with multiple panels almost overlapping each other makes no sense at all, regardless if it worked before or not.
采纳的回答
Shuang Xiao
2020-11-20
I understand that you are using overlapping panels to reduce space. But still want edit each panel without reordering the edited panel.
Before 20b, there is no reordering feature in App Designer. when selecting component, component is brought to front for edit. But this could cause confusion what component is front when selecting and editing the overlapping component.
After 20b, reordering feature is added. Components will stay the same z-order as in component browser for both selected or not selected components. This provides consistent z-order to show all component in design view. It avoids the confusion about the difference between the component's design-time z-order and runtime z-order.
Using tab group can be a workaround for multiple fully overlapping panels.
For multiple partially overlapping panels, you can reorder panel or move it out & move it back to edit. Also You can use property inspector to edit specific component attributes.
See Reorder Components section for more information https://www.mathworks.com/help/matlab/creating_guis/lay-out-apps-in-app-designer.html
0 个评论
更多回答(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!