source: tags/1.3.1/Packages/CevoComponents/Area.pas

Last change on this file was 184, checked in by chronos, 4 years ago
  • Modified: Code formatting.
File size: 668 bytes
Line 
1unit Area;
2
3interface
4
5uses
6 Classes, Graphics, Controls;
7
8type
9 TArea = class(TGraphicControl)
10 constructor Create(AOwner: TComponent); override;
11 protected
12 procedure Paint; override;
13 end;
14
15procedure Register;
16
17
18implementation
19
20procedure Register;
21begin
22 RegisterComponents('C-evo', [TArea]);
23end;
24
25constructor TArea.Create(AOwner: TComponent);
26begin
27 inherited;
28 Enabled := False;
29 ShowHint := True;
30end;
31
32procedure TArea.Paint;
33begin
34 if csDesigning in ComponentState then
35 with Canvas do
36 begin
37 Brush.Color := $FF0000;
38 FrameRect(Rect(0, 0, Width, Height));
39 end;
40end;
41
42end.
43
Note: See TracBrowser for help on using the repository browser.