advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Directory List Box Control Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Usage Notes
   ■ Use the directory list box control to create a dialog box in your
     application that, for example, allows the user to select a subdirectory
     and open a file from that subdirectory. See: Creating a Dialog Box
 
   ■ Directories displayed within a directory list box control are not
     necessarily listed in alphabetical order. The order of the directories
     will be the same order displayed using the MS-DOS command DIR /AD.
 
   ■ Use the List, ListCount, and ListIndex properties to access items
     displayed in the list box at run time.
     See: List Property  ListCount Property  ListIndex Property
 
   ■ Use the Path property to pass the selected directory to a file list box.
     For example:
 
         SUB Dir1_Change ()
               File1.Path = Dir1.Path
         END SUB
 
     See: Path Property
 
   ■ Use the Drive property from the drive list box to update the directory
     list box when a new drive is selected. For example:
 
         SUB Drive1_Change()
               Dir1.Path = Drive1.Drive
         END SUB
 
     See: Drive Property
 
   ■ The minimum size of a directory list box is 4 x 5; dimensions correspond
     to the Height and Width property settings. Specified settings that are
     less than the minimum value are set to the minimum value.
     See: Height Property  Width Property