procedure TForm1.Panel1Click(Sender: TObject);
var
myGraphics: Graphics;
begin
myGraphics :=graphics.fromhwnd(panel1.handle);
mygraphics.filrectangle(brushes.white,panel1.clientrectangle);
mypen.dashstyle :=dashstyle.solid;
mypen.color :=color.black;
myen.startcap :=linecap.flat;
mypen.endcap :=linecap.flat;
mypen.endcap :=linecap.flat;
mypen.width :=10;
end;
end.
不能正常编译,何解?