-
Notifications
You must be signed in to change notification settings - Fork 20
/
Legend.pas
56 lines (47 loc) · 1.18 KB
/
Legend.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
unit Legend;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics,
Controls, Forms, Dialogs, StdCtrls;
type
TFLegend=class(TForm)
gb1: TGroupBox;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label5: TLabel;
lblUnitStd: TLabel;
lblUnitUser: TLabel;
lblUnitTrivial: TLabel;
lblUnitUserUnk: TLabel;
gb2: TGroupBox;
Label4: TLabel;
Label6: TLabel;
Label7: TLabel;
lblInit: TLabel;
lblFin: TLabel;
lblUnk: TLabel;
btnOK: TButton;
procedure FormKeyDown(Sender : TObject; var Key:Word; Shift:TShiftState);
procedure FormCreate(Sender : TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FLegend:TFLegend;
implementation
{$R *.DFM}
procedure TFLegend.FormKeyDown(Sender : TObject; var Key:Word; Shift:TShiftState);
begin
if Key=VK_ESCAPE then Close;
end;
procedure TFLegend.FormCreate(Sender : TObject);
begin
lblUnitStd.Font.Color := $C08000; //blue
lblUnitUser.Font.Color := $00B000; //green
lblUnitTrivial.Font.Color := $0000B0; //brown
lblUnitUserUnk.Font.Color := $8080FF; //red
end;
end.