source: branches/2.20_branch/installer/ChooseFolderFormUnit.pas

Last change on this file was 208, checked in by RBRi, 18 years ago

library updates

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1Unit 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
7Interface
8
9Uses
10 Classes,
11 Forms,
12 Graphics,
13 Buttons,
14 CustomFileControls,
15 StdCtrls;
16
17Type
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
35Var
36 ChooseFolderForm: TChooseFolderForm;
37
38Implementation
39
40Procedure TChooseFolderForm.ChooseFolderFormOnShow (Sender: TObject);
41Begin
42 DirectoryListBox.Directory := Folder;
43End;
44
45Procedure TChooseFolderForm.OKButtonOnClick (Sender: TObject);
46Begin
47 Folder := DirectoryListBox.Directory;
48End;
49
50Procedure TChooseFolderForm.DriveComboBoxOnChange (Sender: TObject);
51Begin
52
53End;
54
55Initialization
56 RegisterClasses ([TChooseFolderForm, TButton, TCustomDriveComboBox, TLabel,
57 TCustomDirectoryListBox]);
58End.
Note: See TracBrowser for help on using the repository browser.