MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE User Manual Page 392

  • Download
  • Add to my manuals
  • Print
  • Page
    / 500
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 391
10 Lay Out a Programmatic UI
10-60
calling inputdlg, which is a dialog that allows you to enter text strings. Here is an
example that creates static text and sets the font properties.
f = figure('Position',[300 300 385 285]);
txt1 = uicontrol(f,...
'Style','text',...
'String',inputdlg('String','Static Text'),...
uisetfont,'Position',[50 200 150 40]);
The inputdlg dialog box appears first.
After you enter a string and click OK, the uisetfont dialog box opens for you to set font
characteristics for displaying the string.
Page view 391
1 2 ... 387 388 389 390 391 392 393 394 395 396 397 ... 499 500

Comments to this Manuals

No comments