How to create an inputdlg with a portion of the default text already selected?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Mischa Kim
el 7 de Sept. de 2016
Editada: Mischa Kim
el 7 de Sept. de 2016
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);
1 comentario
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!