home *** CD-ROM | disk | FTP | other *** search
/ Delphi Programming Unleashed / Delphi_Programming_Unleashed_SAMS_Publishing_1995.iso / units / aviboxu.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1995-03-21  |  745 b   |  42 lines

  1. unit Aviboxu;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs,
  7.   Messages, Classes, Graphics,
  8.   Controls, Forms, Dialogs,
  9.   StdCtrls, FileCtrl;
  10.  
  11. type
  12.   TAviBox = class(TFileListBox)
  13.   private
  14.     { Private declarations }
  15.   protected
  16.     { Protected declarations }
  17.   public
  18.     { Public declarations }
  19.     constructor Create(AOwner: TComponent); override;
  20.   published
  21.     { Published declarations }
  22.   end;
  23.  
  24. procedure Register;
  25.  
  26. implementation
  27.  
  28. constructor TAviBox.Create(AOwner: TComponent);
  29. begin
  30.   inherited Create(AOwner);
  31.   Parent := TForm(AOwner);
  32.   Mask := '*.avi';
  33.   Directory := 'e:\delphi\chaps\multimed\avi';
  34. end;
  35.  
  36. procedure Register;
  37. begin
  38.   RegisterComponents('System', [TAviBox]);
  39. end;
  40.  
  41. end.
  42.