Keep only a specific figure at the same position after resizing a Appdesigner app

1 回表示 (過去 30 日間)
Fabian Gock
Fabian Gock 2018 年 8 月 13 日
コメント済み: Greg 2018 年 9 月 12 日
I want the logo of my company in the right top corner of the GUI. But because I want the components to change size, when the GUI size is changed by the user I have the ticket the respective checkbox in the UI Figure Properties.
Unfortunately this leads to a displacement of the logo (uiaxes) and the GUIs Title which is a label.
I tried to use the UI FIGURE SIZE CHANGED callback to calculate the new position of these two components. But this doesn't work. Maybe the automatic relocation/resizing is prioritized?
Thanks in advance for any help!
-Fabian
  3 件のコメント
Fabian Gock
Fabian Gock 2018 年 8 月 22 日
anyone?
Greg
Greg 2018 年 9 月 12 日
It sounds like you got it all. You can leave AutoResizeChildren on, which essentially uses a cookie-cutter SizeChangedFcn that is slightly smarter than using normalized position units back in GUIDE. Or, you can turn it off, and write the entire SizeChangedFcn callback yourself. Depending on the complexity of the app, I'd probably just let the axes containing the company logo get bigger.
It is a shame each component doesn't have a ResizeWithFigure property for exactly this purpose. Maybe in a future release...

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by