My modal dialog box does not prevent interactions with a MATLAB app (made by App Designer) window
4 ビュー (過去 30 日間)
古いコメントを表示
I have a custom app designed in App Designer, which is composed of one input box (accepting data) and a confirm button. Pushing the confirm button will execute a callback function, which will check whether the box is empty first:
function ConfirmButtonPushed(app, event)
if isempty(app.Databox.Value)
errordlg('No data supplied.', 'Input Error', 'modal');
return;
else
% Some actions to process the data
end
end
If the box is empty, the user is supposed to acknowledge the error message before going back to interact with the app again. However, the modal error dialog does not prevent interactions with the app window (It does prevent interactions with the main MATLAB command line window). Any clue?
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!