Re: [問題] GUI中如何使errordlg按確定後才回到原딠…已回收
※ 引述《voyager2 (FAF)》之銘言:
: 請問在GUI當中, 如果跳出一個 errordlg,
: 在沒按下 errordlg 的 "OK" 之前,
: 要如何將畫面暫時鎖定在 errordlg 裡,
: 待按下 "OK" 後才能返回原來的 figure 中.
: 感謝.
自問自答. 使用 'WindowStyle' property 的 'modal' 就可以了.
例:
a=errordlg('Error!');
set(a,'WindowStyle','modal');
同理可套用到任意 figure.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.109.80.180
→
04/20 18:29, , 1F
04/20 18:29, 1F
推
04/20 21:20, , 2F
04/20 21:20, 2F
討論串 (同標題文章)