How to disable a gui when running a second existing gui from it

6 ビュー (過去 30 日間)
THall
THall 2016 年 4 月 26 日
コメント済み: THall 2016 年 4 月 29 日
Hi, I'm trying to retrieve information from an existing sub-gui (gui 2) which was launched from a button from the primary gui (gui 1). I would like to disable gui 1 until gui 2 has closed to make sure that further functionality of the primary gui (1) is using the all the options/data selected by the user in gui 2.
I can successfully launch and retrieve the data from gui 2 but can't find a way to disable gui 1 until gui 2 has closed/returned. I tried uiwait, but it pauses the figure in whichever gui function it was placed in regardless of the figure handle it is passed. Is there a way to disable a 'parent' gui until a 'child' gui has returned?
Thanks

採用された回答

Subhra Saha
Subhra Saha 2016 年 4 月 28 日
To disable the parent GUI when the child GUI is open , you can use the property inspector to set the "WindowStyle" property of the second figure to "modal".
To open property inspector, right click on your GUI window and that should open the window where you can find "WindowStyle" towards the bottom.
Hope this Helps!!
  1 件のコメント
THall
THall 2016 年 4 月 29 日
Thanks much! This was exactly what I needed.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by