필터 지우기
필터 지우기

Why does "msgbox" add extra space?

조회 수: 5 (최근 30일)
Dave
Dave 2013년 9월 19일
댓글: Ana 2014년 3월 24일
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?
  댓글 수: 1
Arthur
Arthur 2013년 9월 19일
Can you show use the code?

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2013년 9월 20일
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
Jan
Jan 2014년 3월 21일
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 2014년 3월 24일
Ok..! Thanks!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by