- Open you GUI in guide: guide('myGui')
- Hold down the ctrl key and select all elements within the panel.
- Right click on one of the selected elements and open Property Inspector.
- Change 'Units' to 'normalized'.
- Save and exit.
- After you re-run your GUI you'll be able to resize the UI panel and all of its components should rescale.
resize in gui.m
1 次查看(过去 30 天)
显示 更早的评论
Hi,
how i can resize a pannel with all elements in GUIs m-file ?
0 个评论
采纳的回答
Adam Danz
2018-11-23
编辑:Adam Danz
2018-11-23
I think you're asking how to automatically resize all of the components of a UI panel when you resize the UI panel.
This can be done from the code or from the 'guide' user interface. I'll explain the simplest method.
You can do steps 1:5 from the code by setting each component's 'units' property from the startup section of your GUI.
0 个评论
更多回答(1 个)
Image Analyst
2018-11-23
Try setting the Position property of the panel. Make sure the units property of the panel and all controls inside the panel are set to 'normalized'.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!