| Last change
 on this file since 400 was             208, checked in by RBRi, 18 years ago | 
        
          | 
library updates
 | 
        
          | 
              
Property                 svn:eol-style
 set to                 native | 
        
          | File size:
            1.3 KB | 
      
      
| Line |  | 
|---|
| 1 | Unit ChooseFolderFormUnit; | 
|---|
| 2 |  | 
|---|
| 3 | // NewView - a new OS/2 Help Viewer | 
|---|
| 4 | // Copyright 2003 Aaron Lawrence (aaronl at consultant dot com) | 
|---|
| 5 | // This software is released under the Gnu Public License - see readme.txt | 
|---|
| 6 |  | 
|---|
| 7 | Interface | 
|---|
| 8 |  | 
|---|
| 9 | Uses | 
|---|
| 10 | Classes, | 
|---|
| 11 | Forms, | 
|---|
| 12 | Graphics, | 
|---|
| 13 | Buttons, | 
|---|
| 14 | CustomFileControls, | 
|---|
| 15 | StdCtrls; | 
|---|
| 16 |  | 
|---|
| 17 | Type | 
|---|
| 18 | TChooseFolderForm = Class (TForm) | 
|---|
| 19 | CancelButton: TButton; | 
|---|
| 20 | OKButton: TButton; | 
|---|
| 21 | DriveComboBox: TCustomDriveComboBox; | 
|---|
| 22 | Label1: TLabel; | 
|---|
| 23 | DirectoryListBox: TCustomDirectoryListBox; | 
|---|
| 24 | Label2: TLabel; | 
|---|
| 25 | Procedure ChooseFolderFormOnShow (Sender: TObject); | 
|---|
| 26 | Procedure OKButtonOnClick (Sender: TObject); | 
|---|
| 27 | Procedure DriveComboBoxOnChange (Sender: TObject); | 
|---|
| 28 | Private | 
|---|
| 29 | {Insert private declarations here} | 
|---|
| 30 | Public | 
|---|
| 31 | {Insert public declarations here} | 
|---|
| 32 | Folder: string; | 
|---|
| 33 | End; | 
|---|
| 34 |  | 
|---|
| 35 | Var | 
|---|
| 36 | ChooseFolderForm: TChooseFolderForm; | 
|---|
| 37 |  | 
|---|
| 38 | Implementation | 
|---|
| 39 |  | 
|---|
| 40 | Procedure TChooseFolderForm.ChooseFolderFormOnShow (Sender: TObject); | 
|---|
| 41 | Begin | 
|---|
| 42 | DirectoryListBox.Directory := Folder; | 
|---|
| 43 | End; | 
|---|
| 44 |  | 
|---|
| 45 | Procedure TChooseFolderForm.OKButtonOnClick (Sender: TObject); | 
|---|
| 46 | Begin | 
|---|
| 47 | Folder := DirectoryListBox.Directory; | 
|---|
| 48 | End; | 
|---|
| 49 |  | 
|---|
| 50 | Procedure TChooseFolderForm.DriveComboBoxOnChange (Sender: TObject); | 
|---|
| 51 | Begin | 
|---|
| 52 |  | 
|---|
| 53 | End; | 
|---|
| 54 |  | 
|---|
| 55 | Initialization | 
|---|
| 56 | RegisterClasses ([TChooseFolderForm, TButton, TCustomDriveComboBox, TLabel, | 
|---|
| 57 | TCustomDirectoryListBox]); | 
|---|
| 58 | End. | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.