MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE User Manual Page 361

  • Download
  • Add to my manuals
  • Print
  • Page
    / 500
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 360
Add Components to a Programmatic UI
10-29
uisetfont returns the selections as a structure array:
myfont =
FontName: 'Century Schoolbook'
FontWeight: 'normal'
FontAngle: 'normal'
FontSize: 9
FontUnits: 'points'
You can use this information to set font characteristics of a component in the UI:
btn = uicontrol;
btn.FontName = myfont.FontName;
btn.FontSize = myfont.FontSize;
Alternatively, you can set all the font characteristics at once:
set(btn,myfont);
Page view 360
1 2 ... 356 357 358 359 360 361 362 363 364 365 366 ... 499 500

Comments to this Manuals

No comments