change size of rectangles in full screen
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponses (4)
claudio
le 10 Juin 2023
handle = findall(0,'type','uispinner');
handle.outerPosition = [xx yy width heigth];
2 commentaires
Simon Chan
le 10 Juin 2023
Check this:
One way is to set AutoResizeChildren of uifigure to off.
2 commentaires
chicken vector
le 10 Juin 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 commentaire
Voir également
Catégories
En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!