Why does "msgbox" add extra space?

2 Ansichten (letzte 30 Tage)
Dave
Dave am 19 Sep. 2013
Kommentiert: Ana am 24 Mär. 2014
I have a subroutine that reports avg and std values for up to 12 regions of interest in a single "msgbox" dialog. What I've noticed is that for multiple lines of text input to "msgbox", the figure adds extra space above the text area, which makes it look pretty ridiculous:
Any idea why the heck it does that?

Antworten (1)

Jan
Jan am 20 Sep. 2013
While it does not answer your question, I want to mention that a msgbox might be a bad choice to display this text. You can create a more appropriate dialog using a listbox with scrolling.
  5 Kommentare
Jan
Jan am 21 Mär. 2014
I avoid working with GUIDE. You can create the required code manually also:
FigH = figure('Menubar', 'none');
ListBoxH = uicontrol(FigH, 'Style', 'listbox', ...
'Units', 'Normalized', 'Position', [0,0,1,1], ...
'String', {'Yout text', 'E.g. split by TEXTWRAP()'})
Ana
Ana am 24 Mär. 2014
Ok..! Thanks!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by