Problem with inputdlg box in GUI (GUIDE)

Hi!
I have a GUI written in GUIDE where I want to collect some user data using an inputdlg. For example, I could have
prompt = {'Name:'};
dlgTitle = 'Input';
numLines = 1;
defaultAns = {'John'};
name = inputdlg(prompt,dlgTitle,numLines,defaultAns)
The problem is that the inputdlg window upon launching pushes my GUI window to the background. How can I overcome this?

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Software Development Tools 的更多信息

提问:

2016-4-26

Community Treasure Hunt

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

Start Hunting!

Translated by