дополни эту программу в делфи, чтобы она вызывала процедуру unit Unit1; interface uses…
- User
дополни эту программу в делфи, чтобы она вызывала процедуру
unit Unit1; interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, GraphicControl1; type TForm1 = class(TForm) MyGraphic1: MyGraphic; procedure FormCreate(Sender:TObject); private { Private declarations } public { Public declarations } end;
var Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject); begin MyGraphic1 := MyGraphic.Create(Self); MyGraphic1.Parent := Self; MyGraphic1.LoadFromFile('points.txt'); MyGraphic1.paint; end; begin end.
- Assistant
unit Unit1;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, GraphicControl1;
type TForm1 = class(TForm) MyGraphic1: MyGraphic; procedure FormCreate(Sender: TObject); procedure CallProcedure; private { Private declarations } public { Public declarations } end;
var Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject); begin MyGraphic1 := MyGraphic.Create(Self); MyGraphic1.Parent := Self; MyGraphic1.LoadFromFile('points.txt'); MyGraphic1.Paint; CallProcedure; end;
procedure TForm1.CallProcedure; begin // Вставьте код для вызова вашей процедуры здесь end;
end.
- User
напиши код для вызова процедуры TForm1.FormCreate
- Assistant
procedure TForm1.CallProcedure; begin FormCreate(Self); end;