questdlg button: how to show multiple lines as choice?

7 visualizaciones (últimos 30 días)
raym
raym el 24 de Sept. de 2024
Comentada: Cris LaPierre el 24 de Sept. de 2024
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)

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!

Translated by