Embed one GUI (made using GUIDE) into another GUI

Hi,
is it possible to embed one user interface made by GUIDE (.fig and .m file) into a panel or any other placeholder in another GUI? This way I want to make one UI window showing two subwindows.
I have only seen samples with embedding of single plots but not complete UIs.
Thanks
Holger

 採用された回答

Walter Roberson
Walter Roberson 2014 年 2 月 3 日

0 投票

GUIDE is designed to only be able to lay out a single figure, I gather. Any additional figures generated are expected to be just graphics that do not need layout or controls.
GUIDE-built GUIs are expected to start up and then immediately return to the caller, leaving the GUI running, rather than expected to start up and not return until "finished".
It is possible to "make it work" by editing the code that GUIDE generates, but GUIDE is not designed for the situation.

3 件のコメント

Holger Hevener
Holger Hevener 2014 年 2 月 3 日
Thanks for this answer but how can i embed two GUIDE generated figures into one (master) container. I'd like to embed two or three single UIs into one window without having the callbacks merged. They can still work individually as they would do being two seperate windows and the GUi can also return (not blocking).
I have seen samples on how to embed uipanel or uicontrol elements into another one (<http://www.mathworks.de/de/help/matlab/ref/uipanel.html>) but how can I set the parent of a whole GUIDE generated ui? How do I access the container with all GUI elements?
Is there a solution or a good resource to read about it?
Thanks
Holger
Walter Roberson
Walter Roberson 2014 年 2 月 3 日
figure windows (and GUIs are figure windows) cannot be contained in anything.
Holger Hevener
Holger Hevener 2014 年 2 月 3 日
編集済み: Holger Hevener 2014 年 2 月 3 日
This is an answer I didn't want to hear about the UI development in Matlab but thanks anyway :-)
Sad but true.

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

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by