Change Button Position with resizing GUI but fix Buttons size
34 ビュー (過去 30 日間)
古いコメントを表示
Hi everybody!
I'm struggling with resizing GUIs (using guide). I want the window of the GUI to be resizable, and while resizing some of the components sgall resize too (managed this with setting the Units to 'normalized'). But I have a few Buttons and axes at the top of the GUI window which shall not change their size but adjust their position to the current window size. So they should be some kind of attached to the upper border of the window. Is there an solution for this? Thanks!
0 件のコメント
回答 (1 件)
Image Analyst
2018 年 8 月 21 日
Make sure the units property of all controls on the form is set to ' normalized'.
2 件のコメント
Image Analyst
2018 年 8 月 21 日
Then inspect the Position property in GUIDE. And when the figure resizes (I think there's a callback that runs when that happens), set the Position properties of the buttons to the desired size.
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!