When I maximize an app (written in app designer) it also extends the size of edit fields. Is there a way to “lock” their size?

댓글 수: 4

Voss
Voss 2022년 3월 4일
편집: Voss 2022년 3월 4일
You might look into the 'AutoResizeChildren' and 'SizeChangedFcn' properties of a uifigure, or more generally, resizing uifigures.
Jane Bat
Jane Bat 2022년 3월 4일
Is it possible to AutoResizeChildren only specific edit fields?
Voss
Voss 2022년 3월 4일
If different edit fields are in different uipanels, then you could set 'AutoResizeChildren' differently for different uipanels. That would only work if none of the edit fields you want to lock are in the same uipanel as any of the edit fields that should be resized.
If you do have some edit fields that should stay the same size together in a container (i.e., uifigure or uipanel) with some edit fields that should be resized, then I think you either have to write a SizeChangedFcn to do it or maybe you can do it using a Grid Layout Manager.
Jane Bat
Jane Bat 2022년 3월 5일
Thanks

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2022년 3월 4일

댓글:

2022년 3월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by