How to manage more than one GUI ie main GUI and sub GUI?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi all , Suppose i have two GUI's , one is main GUI and the other is sub gui . So i start my work on main GUI and in between , i call sub gui . The sub gui performs a few tasks . But then i want to return to the next line of code of main GUI exactly after the line where i had called the sub gui so that i can continue with the tasks on the main GUI . I have come to know about the inputdlg option but i dont want to just accept input from the users . So i dont want to use inputdlg but i want another user created gui as sub gui where the user can do certain things .
I am learning matlab. So do let me know if such a thing is not possible. And if possible , then plz do try to explain in simple language
0 件のコメント
採用された回答
Adam
2017 年 2 月 21 日
doc uiwait
doc uiresume
These are what you need if you want a 2nd UI to have focus and for the main program that launched it to wait until the launched GUI closes and focus is returned to the main GUI.
The help should contain examples of this.
Also look at the 'WindowStyle' property of your 2nd figure. Often you will want to make this 'modal' to not allow the user to interact with the other window while the 2nd figure is active.
2 件のコメント
Adam
2017 年 2 月 23 日
Well, it will affect exactly what you program it to affect. From a design perspective a change in the sub gui should never directly change anything in the main GUI. It may change some underlying object that the main GUI is listening to and then the main GUI may react by altering its own state, but one GUI should never be directly making changes to another GUI if you want good design.
その他の回答 (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!