Problem with inputdlg box in GUI (GUIDE)

1 view (last 30 days)
Tiburtius
Tiburtius on 26 Apr 2016
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?

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!