Creating Graphical User Interfaces Previous page   Next Page

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:

The following figure illustrates the GUI.

directory list GUI for C:\\GUI\\tools

View Layout and GUI M-File

If you are reading this in the MATLAB Help browser, you can click 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.

Implementing the GUI

The following sections describe the implementation:


Previous page  Plot Push Button Callback Specifying the Directory to List Next page

© 1994-2005 The MathWorks, Inc.