Why does "msgbox" add extra space?
2 ビュー (過去 30 日間)
古いコメントを表示
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 件)
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
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()'})
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!