adjusting dialog box input font size
9 次查看(过去 30 天)
显示 更早的评论
chars={'X0', 'Y0', 'Z0'};
start='coordinates?';
num_lines=1;
value={'0','0','0'};
coordinates=inputdlg(chars,start,num_lines,value);
How can I increase the font size (and make bold if it is available) of the user's input into this dialog box in Matlab 2015a?
0 个评论
采纳的回答
Walter Roberson
2016-1-5
I do not know about R2014b and later. For versions before that, the font size is set according to the 'FactoryUicontrolFontSize' root property, which is dangerous to change (if it can be changed.)
The font weight (bold or not) is set according to the DefaultTextFontWeight for the text and DefaultUicontrolFontWeight for the input. Those are safer to set.
3 个评论
Walter Roberson
2016-1-5
Note: if you are using R2014a or earlier, replaces references to groot with 0 such as
set(0, 'DefaultUITextWeight', 'bold')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!