フィルターのクリア

uigetfile like behavior for new guis

1 回表示 (過去 30 日間)
Justin
Justin 2012 年 9 月 8 日
uigetfile basically prevents doing anything before user input is finished (i.e a file is loaded). I was wondering how one could mimic this behavior for other guis. I.e, for my program I have a menu where a new figure is opened. I'd like for the user to only be able to return to the original GUI when they've input the info I need from them.
Right now the button opens a new figure. I save the figure handle and make sure only one is open. But, the user could click on other buttons while the original is open which is something I'd like to avoid.
Is there sort of an easy way I could implement this? Thanks
Thanks.
  1 件のコメント
Justin
Justin 2012 年 9 月 8 日
編集済み: Justin 2012 年 9 月 8 日
Maybe I can be a little more specific. How about a way to only access other figures once the current figure is closed? Or something along these lines. Thanks.
Maybe a there can be a callback function where if the GCA isnt a specified figure handle, it returns the current figure to a specified figure handle...

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

採用された回答

Walter Roberson
Walter Roberson 2012 年 9 月 8 日
set() the figure WindowStyle property to 'modal'
  2 件のコメント
nanren888
nanren888 2012 年 9 月 8 日
Yes, it seems between the property 'modal', modal dialogs & mabye using uicontrol property 'enable','off' you may get what you wanted.
Justin
Justin 2012 年 9 月 8 日
Exactly what I wanted. Thanks!

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by