Borrar filtros
Borrar filtros

how to break line in prompt text

2 visualizaciones (últimos 30 días)
reema
reema el 21 de Jul. de 2014
Comentada: reema el 10 de Ag. de 2014
i want to display a list in prompt dialogbox..how to usee break line in it likee i want to display text like that:
select songs from below list:
1.namee of songss:
2.name of songs:
3. name of songs:
etc
how can i display this in prompt dialog box

Respuesta aceptada

Geoff Hayes
Geoff Hayes el 22 de Jul. de 2014
Why not use a listdlg instead? It allows you to create a cell array of strings (in your case song titles) which is then displayed in a dialog that the user can select from
strs = {'1. name of song', '2. name of song', '3. name of song'};
prmpt = 'Select songs from below list:';
[s,v] = listdlg('PromptString',prmpt,'SelectionMode','multi','ListString',strs);
Try the above and see what happens!
  10 comentarios
Geoff Hayes
Geoff Hayes el 10 de Ag. de 2014
I'm not sure - it may be one of those undocumented (and so unsupported) features that is possible when you start playing with the Java equivalent for the list box widget.
reema
reema el 10 de Ag. de 2014
i want to display in this list the images of persons instead name..
images of persons are display and then cases are apply when me select any image from this list

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by