J
jbas
Unregistered / Unconfirmed
GUEST, unregistred user!
我想取出kk中thecanvas的使动者(下面的paintbox1);
function tform1.kk(Thecanvas:Tcanvas):boolean;
begin
thecanvas.MoveTo(100,100);
thecanvas.LineTo(200,200);
//这里怎写代码。取出thecanvas的使动者(下面的paintbox1)
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
kk(paintbox1.canvas);
end;
function tform1.kk(Thecanvas:Tcanvas):boolean;
begin
thecanvas.MoveTo(100,100);
thecanvas.LineTo(200,200);
//这里怎写代码。取出thecanvas的使动者(下面的paintbox1)
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
kk(paintbox1.canvas);
end;