This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
2023-06-20 21:52:24 +03:00

25 lines
461 B
ObjectPascal

// Класс штампа текста
uses GraphABC;
type
TextStamp = auto class
x,y,pt: integer;
Text: string;
procedure Stamp;
begin
Font.Size := pt;
TextOut(x,y,text);
end;
procedure MoveOn(dx,dy: integer);
begin
x += dx; y += dy;
end;
end;
begin
var txt := new TextStamp(200,200,14,'Привет!');
txt.Stamp;
txt.MoveOn(0,40);
txt.Text := 'До свидания!';
txt.Stamp;
end.