MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Specifikace Strana 142

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 180
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 141
5 Application Examples
5-18
List Box Directory Reader
This example uses a list box to display the files in a directory. When the user
double clicks on a list item, one of the following happens:
If the item is a file, the GUI opens the file appropriately for the file type.
If the item is a directory, the GUI reads the contents of that directory into
the list box.
If the item is a single dot (
.), the GUI updates the display of the current
directory.
If the item is two dots (..), the GUI changes to the directory up one level and
populates the list box with the contents of that directory.
The following picture illustrates the GUI.
View the Layout and Application M-File
Use the following links to display the GUIDE Layout Editor and the MATLAB
Editor with a completed version of this example. This enables you to see the
values of all component properties and to understand how the components are
assembled to create the GUI. You can also see a complete listing of the code
that is discussed in the following sections.
Zobrazit stránku 141
1 2 ... 137 138 139 140 141 142 143 144 145 146 147 ... 179 180

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

Žádné komentáře