home *** CD-ROM | disk | FTP | other *** search
/ Delphi Programming Unleashed / Delphi_Programming_Unleashed_SAMS_Publishing_1995.iso / misc / objects / subcomp / main.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1995-03-21  |  562 b   |  39 lines

  1. unit Main;
  2.  
  3. { Program copyright (c) 1995 by Charles Calvert }
  4. { Project Name: SUBCOMP }
  5.  
  6. interface
  7.  
  8. uses
  9.   WinTypes, WinProcs,
  10.   Classes, Graphics,
  11.   Forms, Controls,
  12.   SubComp, StdCtrls;
  13.  
  14. type
  15.   TForm1 = class(TForm)
  16.     Button1: TButton;
  17.     procedure Button1Click(Sender: TObject);
  18.   private
  19.     c: TMyPanel;
  20.   public
  21.     { Public declarations }
  22.   end;
  23.  
  24. var
  25.   Form1: TForm1;
  26.  
  27. implementation
  28.  
  29. {$R *.DFM}
  30.  
  31. procedure TForm1.Button1Click(Sender: TObject);
  32. begin
  33.   C := TMyPanel.Create(Self);
  34.   C.Parent := Form1;
  35. end;
  36.  
  37. end.
  38.  
  39.