App designer panel order

11 次查看(过去 30 天)
Sudhee
Sudhee 2020-10-19
回答: Shuang Xiao 2020-11-20
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 个评论
Sudhee
Sudhee 2020-10-19
编辑:Sudhee 2020-10-19
@mario: It did work for earlier version of MATLAB and was easy to use. It didn't work after I upgraded to 2020b. My requirement is to have the different panels overlapping so that it won't occupy much space in the final product. And if I want to edit a particular panel, I should be able to bring it to the front.
Mario Malic
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
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by