Found a potential bug in 'listdlg'?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ziv Kassner
le 27 Mar 2020
Commenté : Ziv Kassner
le 28 Mar 2020
When typing the following code:
[w,~] = listdlg('PromptString',{strcat(['Select a wing for ' ,...
'individual number ',num2str(indx)])},...
'SelectionMode','single','ListString',fn);
It doesn't show the words after 'individual'
I wonder why...
Thanks,
Ziv
0 commentaires
Réponse acceptée
Cris LaPierre
le 28 Mar 2020
Modifié(e) : Cris LaPierre
le 28 Mar 2020
"If you specify the prompt as a character vector that is longer than the width of the dialog box, the prompt clips. To create a multiline list box prompt, specify the prompt as a cell array or string array. Line breaks occur between each array element. Long elements wrap to fit the dialog box."
Your prompt string is longer than the width of the box. You could try the following.
[w,~] = listdlg('PromptString',["Select a wing for ",...
"individual number " + num2str(indx)],...
'SelectionMode','single','ListString',"Happy");
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Discrete Events and Mode Charts dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!