How to create an inputdlg with a portion of the default text already selected?
3 ビュー (過去 30 日間)
古いコメントを表示
I'd like to create an input dialog box where a subset of the default text is already selected so that the user will overwrite it by beginning to type. Has anyone managed to make something like this work without creating your own gui in GUIDE or AppBuilder?
0 件のコメント
回答 (1 件)
Mischa Kim
2016 年 9 月 7 日
編集済み: Mischa Kim
2016 年 9 月 7 日
David, do you mean something like
prompt = {'Enter matrix size:','Enter colormap name:'};
dlg_title = 'Input';
num_lines = 1;
defaultans = {'20',''};
answer = inputdlg(prompt,dlg_title,num_lines,defaultans);
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!