5,388
社区成员
发帖
与我相关
我的任务
分享
begin
with PaintBox1.Canvas do
begin
Pen.Color := clGreen;
Pen.Style := psSolid;
Pen.Mode := pmCopy;
Rectangle(Rect1);
end;
PaintBox1.Canvas.Pen.Color := clblue;
Paintbox1.Canvas.Pen.Mode:=pmXor;
List:=TList<Integer>.Create;
for i := xyPoint1.Count - 1 downto 0 do
if (xyPoint1[i].x > Point1[1].x) and (xyPoint1[i].x < x) and
(xyPoint1[i].y < y) and (xyPoint1[i].y > Point1[1].y) then
begin
Listdata1.Delete(i);
List.Add(i);
drawcross(xyPoint1[i].x,xypoint1[i].Y);
end;
if List.Count>0 then
for i:=0 downto List.Count-1 do xyPoint1.delete(List.Items[i]);
paintbox1.Canvas.Pen.Color:=clGreen; //删除方框
paintbox1.Canvas.Rectangle(Rect1);
List.Clear;
end;
end;
procedure Halt0;
begin
Halt;
end;
asm
xor edx, edx
push ebp
push OFFSET @@safecode
push dword ptr fs:[edx]
mov fs:[edx],esp
call Halt0
jmp @@exit;
@@safecode:
call Halt0;
@@exit:
end;
List:=TList<Integer>.Create;