2011-11-25 10:14:01 +00:00
|
|
|
unit mainform;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
|
|
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs;
|
|
|
|
|
|
|
|
type
|
2011-11-25 16:13:20 +00:00
|
|
|
|
|
|
|
{ TForm1 }
|
|
|
|
|
2011-11-25 10:14:01 +00:00
|
|
|
TForm1 = class(TForm)
|
2011-11-25 16:13:20 +00:00
|
|
|
procedure FormPaint(Sender: TObject);
|
2011-11-25 10:14:01 +00:00
|
|
|
private
|
|
|
|
{ private declarations }
|
|
|
|
public
|
|
|
|
{ public declarations }
|
|
|
|
end;
|
|
|
|
|
|
|
|
var
|
|
|
|
Form1: TForm1;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
{$R *.lfm}
|
|
|
|
|
2011-11-25 16:13:20 +00:00
|
|
|
{ TForm1 }
|
|
|
|
|
|
|
|
procedure TForm1.FormPaint(Sender: TObject);
|
|
|
|
begin
|
|
|
|
Canvas.Brush.Color := clRed;
|
|
|
|
Canvas.Rectangle(10, 10, 100, 100);
|
|
|
|
end;
|
|
|
|
|
2011-11-25 10:14:01 +00:00
|
|
|
end.
|
|
|
|
|