questdlg button: how to show multiple lines as choice?
7 views (last 30 days)
Show older comments
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')
Answers (0)
See Also
Categories
Find more on Dialog Boxes in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!