MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Uživatelský manuál Strana 292

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 500
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 291
9 Examples of GUIDE UIs
9-46
Interactive List Box in a GUIDE UI
In this section...
“About the Example” on page 9-46
“Implement the List Box” on page 9-47
About the Example
This example shows how to create a list box to display the files in a folder. When you
double click a list item, MATLAB opens the item:
If the item is a file, MATLAB opens the file using the appropriate application.
If the item is a folder, MATLAB reads the contents of that folder into the list box.
To get and view the example code:
1
Copy the example FIG-file and code file to your current (writeable) folder and open
the FIG-file in GUIDE and the with the following commands:
copyfile(fullfile(docroot, 'techdoc','creating_guis',...
'examples','lbox2*.*')), fileattrib('lbox2*.*', '+w')
guide lbox2.fig
Zobrazit stránku 291
1 2 ... 287 288 289 290 291 292 293 294 295 296 297 ... 499 500

Komentáře k této Příručce

Žádné komentáře