Big tabs' names in App Designer R2020a

조회 수: 2 (최근 30일)
Anastasia Eltsova
Anastasia Eltsova 2021년 5월 1일
댓글: Mario Malic 2021년 5월 5일
I wanted to create an app which makes visible one forms or the other according to the switch position. Some forms are always visible, but changing their positions
But I've met a problem: my app in the AppDesigner editor looks like this:
And after running like this:
Maybe there is a way to change size of the tabs' names before running? I tried to change window's size, but in this case I got an unexpected behavior of dropdown, that have to change position.
Both 3 of dropdowns should change their position (I change property ".Position" in a switch callback)
But 2 of them don't
But when I use breakpoints or toggle switch twice they do change position:
Hope you are not afraid of cyrillic
  댓글 수: 6
Rik
Rik 2021년 5월 3일
Please don't post the same question if you're not happy with the answer. You can use comments to reply and further clarify your issue.
Also, which release are you using?
Anastasia Eltsova
Anastasia Eltsova 2021년 5월 3일
I'm sorry - I tried to make a question with clearer heading, but Mario Malic commented this post before I posted the other, so I couldn't delete this one.
I use R2020a

댓글을 달려면 로그인하십시오.

답변 (1개)

Mario Malic
Mario Malic 2021년 5월 2일
Hi,
I have included the grid layout in the attached example showing the grid layout for Panel. You'll get a warning in the command window, because changing the position property of a component is a little bit different when you use grid layouts, which I have never did before. You can figure out how to do it on your own and I have no doubt that you'll succeed!
Without GridLayout, if you take a look at Switch position
app.Switch.Position
Y coordinate is inconsistent which may be a bit problematic, so, using grid layout in general is better, thus you'll have less issues when dealing with different resolutions when your app is ran on different monitors.
  댓글 수: 8
Anastasia Eltsova
Anastasia Eltsova 2021년 5월 5일
It was even harder to find it in app with more than 20 forms doing some actions in one callback
Mario Malic
Mario Malic 2021년 5월 5일
See the bolded in the comment above yours.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile 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!

Translated by