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 ExchangeDesktop についてさらに検索

質問済み:

2016 年 4 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by