source: GraphicTest/Forms/FormDraw.pas

Last change on this file was 573, checked in by chronos, 5 months ago
  • Modified: Build with Lazarus 3.4.
  • Modified: Removed U prefix from unit names.
File size: 664 bytes
Line 
1unit FormDraw;
2
3interface
4
5uses
6 Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
7 LCLType;
8
9type
10
11 { TFormDraw }
12
13 TFormDraw = class(TForm)
14 procedure FormCreate(Sender: TObject);
15 private
16
17 public
18 FrameSize: TPoint;
19 EraseBackgroundEnabled: Boolean;
20 procedure EraseBackground(DC: HDC); override;
21 end;
22
23
24implementation
25
26{ TFormDraw }
27
28procedure TFormDraw.FormCreate(Sender: TObject);
29begin
30 DoubleBuffered := True;
31end;
32
33procedure TFormDraw.EraseBackground(DC: HDC);
34begin
35 if EraseBackgroundEnabled then
36 inherited;
37end;
38
39initialization
40 {$I FormDraw.lrs}
41
42end.
43
Note: See TracBrowser for help on using the repository browser.