questdlg button: how to show multiple lines as choice?
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
When I set the optional answers for questdlg, a prolem is that if the string is too long, the dialogue will be too wide.
I am seeking a way to enable multiple lines, but none of them works well.
Is there a way to solve this problem?
% GUI is too wide
aAns = questdlg('question is here','title','Marry had a little lamb,little lamb,little lamb,Bob has a bannana','Cancel','OK','OK');
% there are 2 lines, but the botton is not high enough.
aAns = questdlg('question is here','title','<html>Marry had a little lamb,little lamb,<br>little lamb,Bob has a bannana','Cancel','OK','OK')
% the second line is missing
aAns = questdlg('question is here','title',sprintf('%s\n%s','Marry had a little lamb,little lamb','little lamb,Bob has a bannana'),'Cancel','OK','OK')
Risposte (0)
Vedere anche
Categorie
Scopri di più su Dialog Boxes in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!