change size of rectangles in full screen

2 Ansichten (letzte 30 Tage)
piero
piero am 10 Jun. 2023
Kommentiert: claudio am 20 Aug. 2023
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

Antworten (4)

claudio
claudio am 10 Jun. 2023
handle = findall(0,'type','uispinner');
handle.outerPosition = [xx yy width heigth];
  2 Kommentare
piero
piero am 10 Jun. 2023
hi i receive this erro
Unrecognized function or variable 'xx'.
in [xx yy width heigth] what value i write?
claudio
claudio am 20 Aug. 2023
xx = coordinate along x axis
yy = coordinate along y axis

Melden Sie sich an, um zu kommentieren.


Simon Chan
Simon Chan am 10 Jun. 2023
Check this:
One way is to set AutoResizeChildren of uifigure to off.
  2 Kommentare
piero
piero am 10 Jun. 2023
was already selected
Simon Chan
Simon Chan am 10 Jun. 2023
Attached the demo for your reference.

Melden Sie sich an, um zu kommentieren.


chicken vector
chicken vector am 10 Jun. 2023
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 Kommentar
piero
piero am 10 Jun. 2023
Bearbeitet: piero am 10 Jun. 2023
It's correct to write here your code?
If i execute code i don't see difference

Melden Sie sich an, um zu kommentieren.


piero
piero am 10 Jun. 2023

Kategorien

Mehr zu Develop uifigure-Based Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by