questdlg button: how to show multiple lines as choice?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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')
Respuestas (0)
Ver también
Categorías
Más información sobre Dialog Boxes en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!