Guest User

Untitled

a guest
Jan 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. constructor TTool.Create(AIndex, Ax, Ay: Integer; AShapeList: TShapeList; APaintBox: TPaintBox);
  2. begin
  3. case AIndex of
  4. 1: FCurrentShape:=TPenLine.Create(Ax, Ay, APaintBox);
  5. 2: FCurrentShape:=TLine.Create(Ax, Ay, APaintBox);
  6. 3: FCurrentShape:=TRect.Create(Ax, Ay, APaintBox);
  7. end;
  8. AShapeList.AddShape(FCurrentShape);
  9. end;
Add Comment
Please, Sign In to add comment