source: trunk/Forms/UFormDraw.pas

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