in the photo on the left when the window is reduced...in the photo on the right when I enlarge the window to full screen

回答 (4 件)

claudio
claudio 2023 年 6 月 10 日

0 投票

handle = findall(0,'type','uispinner');
handle.outerPosition = [xx yy width heigth];

2 件のコメント

piero
piero 2023 年 6 月 10 日
hi i receive this erro
Unrecognized function or variable 'xx'.
in [xx yy width heigth] what value i write?
claudio
claudio 2023 年 8 月 20 日
xx = coordinate along x axis
yy = coordinate along y axis

サインインしてコメントする。

Simon Chan
Simon Chan 2023 年 6 月 10 日

0 投票

Check this:
One way is to set AutoResizeChildren of uifigure to off.

2 件のコメント

piero
piero 2023 年 6 月 10 日
was already selected
Simon Chan
Simon Chan 2023 年 6 月 10 日
Attached the demo for your reference.

サインインしてコメントする。

chicken vector
chicken vector 2023 年 6 月 10 日

0 投票

Use uigridlayout to customise these parameters and have autmatic scalability when you change figure's dimensions.
You can set scalable or pixel width:
uif = uifigure;
uig = uigridlayout(uif, [3 3]);
uig.RowHeight = {'1x',20,'1x'};
uig.ColumnWidth = {'1x',50,'1x'};
uis = uispinner(uig);
uis.Layout.Row = 2;
uis.Layout.Column = 2;

1 件のコメント

piero
piero 2023 年 6 月 10 日
編集済み: piero 2023 年 6 月 10 日
It's correct to write here your code?
If i execute code i don't see difference

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で App Building についてさらに検索

質問済み:

2023 年 6 月 10 日

コメント済み:

2023 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by