How to create an inputdlg with a portion of the default text already selected?
조회 수: 2 (최근 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!