GUI - How to make a pop-up figure prevent from modifying anything else until it's closed

In the GUI that I'm programming, a pushbutton makes a figure appear where some stuff can be set. What I would like is that this figure prevents the user from beeing able to modify any other displayed figure until it is closed. I read in the MATLAB help that there's a property that can be set, but I can't find it again. Thanks for your help, Stefano

 採用された回答

Jiro Doke
Jiro Doke 2012 年 2 月 27 日
Is this what you're looking for?
figure('WindowStyle', 'modal')

3 件のコメント

Sean de Wolski
Sean de Wolski 2012 年 2 月 27 日
Nice!
Stefano
Stefano 2012 年 2 月 27 日
That's it! I somehow got over it while reading the help... :) Thanks!
Oleg Komarov
Oleg Komarov 2012 年 2 月 27 日
Very good! Didn't know that.

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

その他の回答 (1 件)

Oleg Komarov
Oleg Komarov 2012 年 2 月 27 日

0 投票

3 件のコメント

Stefano
Stefano 2012 年 2 月 27 日
Thanks for replying. These are nice solutions but I'm quite sure that there is something already existing in Matlab. Something like it happens in Windows when you click on "Options" in some settings, when you can't modify the underlying windows until you close the overlying.
Oleg Komarov
Oleg Komarov 2012 年 2 月 27 日
You don't have enable/disable at the figure level, as the first link says.
Stefano
Stefano 2012 年 2 月 27 日
I looked at the two links. I'll keep a link of them.
Thanks

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

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by