home *** CD-ROM | disk | FTP | other *** search
/ Delphi Programming Unleashed / Delphi_Programming_Unleashed_SAMS_Publishing_1995.iso / misc / listtrck / main.pas < prev    next >
Pascal/Delphi Source File  |  1995-03-20  |  697b  |  40 lines

  1. unit Main;
  2.  
  3. { Program copyright (c) 1995 by Charles Calvert }
  4. { Project Name: LISTTRCK }
  5.  
  6. interface
  7.  
  8. uses
  9.   WinTypes, WinProcs, Classes,
  10.   Graphics, Forms, Controls,
  11.   Dialogs, StdCtrls, ExtCtrls;
  12.  
  13. type
  14.   TForm1 = class(TForm)
  15.     ListBox1: TListBox;
  16.     OpenDialog1: TOpenDialog;
  17.     Panel1: TPanel;
  18.     BLoadFile: TButton;
  19.     procedure BLoadFileClick(Sender: TObject);
  20.   private
  21.     { Private declarations }
  22.   public
  23.     { Public declarations }
  24.   end;
  25.  
  26. var
  27.   Form1: TForm1;
  28.  
  29. implementation
  30.  
  31. {$R *.DFM}
  32.  
  33. procedure TForm1.BLoadFileClick(Sender: TObject);
  34. begin
  35.   if OpenDialog1.Execute then
  36.     ListBox1.Items.LoadFromFile(OpenDialog1.FileName);
  37. end;
  38.  
  39. end.
  40.