GUI question
8 ビュー (過去 30 日間)
古いコメントを表示
i have the main gui window. can i open through a button an extra gui window to perform some tasks and then close it and continue working in the main window??
5 件のコメント
Jan
2012 年 4 月 15 日
Now without humor: You can insert the command for opening the 2nd GUI in the callback of the button. While this is actually easy, not to say trivial, it is complicated to give an explicit example, because your question is vague. Therefore Oleg's "yes" is an almost optimal answer.
What have you tried so far and which problems appeared?
採用された回答
Geoff
2012 年 4 月 15 日
1. Build your other GUI.
2. Create the button in your main GUI and put code inside its click callback that invokes your new GUI. This will just be the base name of the M-file that your GUI is stored in.
3. Use uiwait as detailed in the bottom half of this page: <http://www.mathworks.com.au/support/solutions/en/data/1-15K5T/index.html?product=ML&solution=1-15K5T>
0 件のコメント
その他の回答 (1 件)
marina
2012 年 4 月 16 日
1 件のコメント
Walter Roberson
2012 年 4 月 16 日
http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.3F
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!