Blame | Last modification | View Log | Download
unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, ExtCtrls, StdCtrls,PORTINC, ComCtrls;typePoleTeplot = array [1..544] of byte;typeTForm1 = class(TForm)PaintBox1: TPaintBox;Button1: TButton;Button2: TButton;procedure Button1Click(Sender: TObject);procedure Button2Click(Sender: TObject);private{ Private declarations }public{ Public declarations }end;varForm1: TForm1;Teplota: PoleTeplot;SouborTeplot: File of byte;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);vari: byte;n: integer;begini:=0;for n:=1 to 544 dobeginTeplota[n] := i;i:=(i+1) mod 256;end;end;procedure TForm1.Button2Click(Sender: TObject);varo: bytep: bytebegin{ Function OPENCOM "COM1,1200,N,8,1"for o:=1 to 50 dobeginProgressBar1:= pp:=(p+1)end; }end;end.