“lock” edit fields size

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 Kommentare

Voss
Voss am 4 Mär. 2022
Bearbeitet: Voss am 4 Mär. 2022
You might look into the 'AutoResizeChildren' and 'SizeChangedFcn' properties of a uifigure, or more generally, resizing uifigures.
Jane Bat
Jane Bat am 4 Mär. 2022
Is it possible to AutoResizeChildren only specific edit fields?
Voss
Voss am 4 Mär. 2022
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 am 5 Mär. 2022
Thanks

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2021b

Gefragt:

am 4 Mär. 2022

Kommentiert:

am 5 Mär. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by