source: trunk/installer/ChooseFolderFormUnit.pas@ 144

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

initial checkin

  • 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, Forms, Graphics, Buttons, CustomFileControls, StdCtrls;
11
12Type
13 TChooseFolderForm = Class (TForm)
14 CancelButton: TButton;
15 OKButton: TButton;
16 DriveComboBox: TCustomDriveComboBox;
17 Label1: TLabel;
18 DirectoryListBox: TCustomDirectoryListBox;
19 Label2: TLabel;
20 Procedure ChooseFolderFormOnShow (Sender: TObject);
21 Procedure OKButtonOnClick (Sender: TObject);
22 Procedure DriveComboBoxOnChange (Sender: TObject);
23 Private
24 {Insert private declarations here}
25 Public
26 {Insert public declarations here}
27 Folder: string;
28 End;
29
30Var
31 ChooseFolderForm: TChooseFolderForm;
32
33Implementation
34
35Procedure TChooseFolderForm.ChooseFolderFormOnShow (Sender: TObject);
36Begin
37 DirectoryListBox.Directory := Folder;
38End;
39
40Procedure TChooseFolderForm.OKButtonOnClick (Sender: TObject);
41Begin
42 Folder := DirectoryListBox.Directory;
43End;
44
45Procedure TChooseFolderForm.DriveComboBoxOnChange (Sender: TObject);
46Begin
47
48End;
49
50Initialization
51 RegisterClasses ([TChooseFolderForm, TButton, TCustomDriveComboBox, TLabel,
52 TCustomDirectoryListBox]);
53End.
Note: See TracBrowser for help on using the repository browser.