Контрольная работа: Разработка программы на четырех языках программирования
unit GRAPH;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Image1: TImage;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
with Image1 do begin
{К}
Canvas.MoveTo(140,110);
Canvas.LineTo(140,170);
Canvas.MoveTo(170,110);
Canvas.LineTo(140,140);
Canvas.LineTo(170,170);
{А}