Focusing of Main GUI should stop until I press OK button in errordlg box

조회 수: 1 (최근 30일)
I have a gui main window which gets some inputs from user.
If their is an error in the input the gui will pops up error message.
my problem is until the user click 'ok' in the errordlg box the main gui should not get focus. can somebody help me.
I tried with waitfor(), uiwait () these function will stop execution of matlab but still main gui can be operated

채택된 답변

Jan
Jan 2012년 5월 16일
You can set the "WindowStyle" property of the error message to 'modal'.
  댓글 수: 5
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 5월 16일
Thanks, its working fine. Now the errordlg wait till I press ok button. What are the other property that can be assign to Windowstyle property. Is their any blog reference for it.
Jan
Jan 2012년 5월 20일
See "set(gcf)" and "doc figure".

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by