home *** CD-ROM | disk | FTP | other *** search
- unit Main;
-
- { Program copyright (c) 1995 by Charles Calvert }
- { Project Name: FRM2COMP }
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs,
- Messages, Classes, Graphics,
- Controls, Forms, Dialogs,
- StdCtrls, Buttons, ExtCtrls;
-
- type
- TForm1 = class(TForm)
- BitBtn1: TBitBtn;
- Panel1: TPanel;
- procedure BitBtn1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- uses
- NewComp, UtilBox;
-
- {$R *.DFM}
-
- procedure TForm1.BitBtn1Click(Sender: TObject);
- var
- Main2: TCompForm;
- begin
- Main2 := TCompForm.Create(Self);
- Main2.Parent := Panel1;
- Main2.BorderWidth := 6;
- Main2.Color := clBlue;
- Center(TWinControl(Main2), Panel1);
- Main2.Show;
- BitBtn1.Enabled := False;
- end;
-
- end.
-