change size of rectangles in full screen
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(4 个)
claudio
2023-6-10
handle = findall(0,'type','uispinner');
handle.outerPosition = [xx yy width heigth];
2 个评论
chicken vector
2023-6-10
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;
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop uifigure-Based Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!