questdlg button: how to show multiple lines as choice?

9 次查看(过去 30 天)
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')

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dialog Boxes 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by