Creating pseudo-modal App Designer apps that return outputs

版本 1.0.0 (177.8 KB) 作者: Adam Sifounakis
A utility designed to make it easy to create pseudo-modal App Designer apps that can return outputs.
337.0 次下载
更新时间 2018/11/26

查看许可证

"inputdlg" was really handy for creating a dialog that would pause your code, get user inputs, and then continue executing based on those inputs.

Since there isn't a way to accomplish this workflow within the App Designer framework yet, I built this workaround to help me accomplish what I was looking for.

This utility allows you to accomplish 2 primary workflows:
1) call your dialog app from code and have it block MATLAB code execution until the user finishes with the dialog
2) call your dialog app from within another app (the calling app) and block user input on the calling app until the user finishes with the dialog

Benefits:
-- Allows you to take advantage of the great App Designer editing features
-- Allows you to build more customizable input dialogs compared to inputdlg
-- Will automatically return all public properties and editable values in UI controls
-- At its most basic level, it requires four (4) simple 1-line code changes to your App Designer app to enable this calling method

Note:
This code requires R2018a+.

引用格式

Adam Sifounakis (2024). Creating pseudo-modal App Designer apps that return outputs (https://www.mathworks.com/matlabcentral/fileexchange/69411-creating-pseudo-modal-app-designer-apps-that-return-outputs), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018b
与 R2018a 及更高版本兼容
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0