Code:
unit Rendevouztd; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TForm1 = class(TForm) procedure FormPaint(Sender: TObject); procedure FormResize(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormPaint(Sender: TObject); Var i : integer; begin For i := 1 to 5000 Do Begin Canvas.Pen.Color := clBlue; Canvas.Pen.Style := psDashDot; Canvas.MoveTo(ClientWidth div 2, ClientHeight div 2); Canvas.LineTo(random(ClientWidth),random(ClientHeight)); end; end; procedure TForm1.FormResize(Sender: TObject); begin Invalidate; end; end.
Tidak ada komentar:
Posting Komentar