home *** CD-ROM | disk | FTP | other *** search
- unit Unit1;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, StdCtrls, FileCtrl;
-
- type
- TForm1 = class(TForm)
- DirectoryListBox1: TDirectoryListBox;
- FileListBox1: TFileListBox;
- DriveComboBox1: TDriveComboBox;
- procedure FileListBox1Change(Sender: TObject);
- private
- { Private-Deklarationen }
- public
- { Public-Deklarationen }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- uses main;
- {$R *.DFM}
-
- procedure TForm1.FileListBox1Change(Sender: TObject);
- begin
-
- with FileListBox1, Test.LMDTiler1.Bitmap do
- if itemindex<>-1 then loadfromfile(items[itemindex]);
- {don't try to load, if no Bitmap is selected...}
-
- end;
-
- end.
-