User`s guide

10 Examples of GUIDE GUIs
List Box Directory Reader (GUIDE)
In this section...
“About the List Box Directory Example” on page 10-54
“View and Run the L ist Box Directory GUI” on page 10-55
“Implement the List Box Directory GUI” on page 10-56
About the List Box Directory Example
This example uses a list box to display the files in a folder. When the user
double clicks a list item, one of the following happens:
Iftheitemisafile,theGUIopensthefileappropriatelyforthefiletype.
If the item is a folder, the GUI reads the contents of that folder into the
list box.
If the item is a single dot (.), the GUI updates the display of the current
folder.
If the item is two dots (..), the GUI changes to the parent folder (one level
up) and populates the list box with the contents of that folder.
The following figure illustrates the GUI.
10-54