-
Notifications
You must be signed in to change notification settings - Fork 4
/
ufrmDelphiVersions.pas
86 lines (70 loc) · 2.07 KB
/
ufrmDelphiVersions.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
unit ufrmDelphiVersions;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Buttons;
type
TfrmDelphiVersions = class(TForm)
lblIntro: TLabel;
lbDefs: TListBox;
pnlBottom: TPanel;
Label2: TLabel;
edtAboutLink: TEdit;
Label3: TLabel;
edtClassLink: TEdit;
btnCopyAboutLink: TSpeedButton;
btnCopyClassLink: TSpeedButton;
Label1: TLabel;
edtDirectivesLink: TEdit;
btnCopyDirectivesLink: TSpeedButton;
Label4: TLabel;
edtVersionsLink: TEdit;
btnCopyVersionsLink: TSpeedButton;
procedure FormActivate(Sender: TObject);
procedure btnCopyAboutLinkClick(Sender: TObject);
procedure btnCopyClassLinkClick(Sender: TObject);
procedure btnCopyDirectivesLinkClick(Sender: TObject);
procedure btnCopyVersionsLinkClick(Sender: TObject);
end;
var
frmDelphiVersions: TfrmDelphiVersions;
implementation
{$R *.dfm}
uses
Clipbrd,
uConditionalList;
procedure ShowCompilerDefine(const CompDefined: string);
begin
frmDelphiVersions.lbDefs.Items.Add(CompDefined);
end;
procedure TfrmDelphiVersions.btnCopyAboutLinkClick(Sender: TObject);
begin
Clipboard.AsText := edtAboutLink.Text;
ShowMessage('"About" Link copied.');
end;
procedure TfrmDelphiVersions.btnCopyClassLinkClick(Sender: TObject);
begin
Clipboard.AsText := edtClassLink.Text;
ShowMessage('"Classification" Link copied.');
end;
procedure TfrmDelphiVersions.btnCopyDirectivesLinkClick(Sender: TObject);
begin
Clipboard.AsText := edtDirectivesLink.Text;
ShowMessage('"Directives" Link copied.');
end;
procedure TfrmDelphiVersions.btnCopyVersionsLinkClick(Sender: TObject);
begin
Clipboard.AsText := edtVersionsLink.Text;
ShowMessage('"Versions" Link copied.');
end;
procedure TfrmDelphiVersions.FormActivate(Sender: TObject);
begin
GetConditionalDefines(ShowCompilerDefine);
SetupReferenceLinks;
lblIntro.Caption := IntroText;
edtAboutLink.Text := IntroLink1;
edtClassLink.Text := IntroLink2;
edtDirectivesLink.Text := DirectivesLink;
edtVersionsLink.Text := VersionsLink;
end;
end.