How to decrease margins around uibutton in uigridlayout?
6 次查看(过去 30 天)
显示 更早的评论
Dear colleagues
How can I shrink the margins around buttons created by uibutton() in the grid layout manager? I would prefer them packed next to each other.
Thank you for any suggestions
Jan Kudlacek
f = uifigure('Position', [200 200 280 60]);
g = uigridlayout(f);
g.RowHeight = {'1x'};
g.ColumnWidth = repelem({'1x'}, 9);
for kb = 1 : 9
uibutton(g, 'push', 'Text', ['B', num2str(kb)])
end
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 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!