-
Notifications
You must be signed in to change notification settings - Fork 4
/
ufrmDelphiVersionsMobile.pas
80 lines (66 loc) · 1.78 KB
/
ufrmDelphiVersionsMobile.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
unit ufrmDelphiVersionsMobile;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Layouts,
FMX.ListBox, FMX.StdCtrls, FMX.Controls.Presentation, FMX.Colors;
type
TfrmDelphiVersionsMobile = class(TForm)
lblIntro: TLabel;
pnlBottom: TPanel;
lbDefines: TListBox;
cmbRefs: TComboBox;
btnLaunchRef: TButton;
ColorBoxBorder: TColorBox;
lblTitle: TLabel;
StyleBook: TStyleBook;
procedure FormCreate(Sender: TObject);
procedure FormActivate(Sender: TObject);
procedure btnLaunchRefClick(Sender: TObject);
private
FFirstTime: Boolean;
end;
var
frmDelphiVersionsMobile: TfrmDelphiVersionsMobile;
implementation
{$R *.fmx}
{$R *.LgXhdpiPh.fmx ANDROID}
{$R *.Surface.fmx MSWINDOWS}
{$R *.Macintosh.fmx MACOS}
{$R *.LgXhdpiTb.fmx ANDROID}
{$R *.Windows.fmx MSWINDOWS}
{$R *.iPad.fmx IOS}
{$R *.iPhone.fmx IOS}
{$R *.SmXhdpiPh.fmx ANDROID}
{$R *.XLgXhdpiTb.fmx ANDROID}
{$R *.NmXhdpiPh.fmx ANDROID}
uses
uOpenViewUrl,
uConditionalList;
procedure ShowCompilerDefine(const CompDefined: string);
begin
frmDelphiVersionsMobile.lbDefines.Items.Add(CompDefined);
end;
procedure TfrmDelphiVersionsMobile.btnLaunchRefClick(Sender: TObject);
begin
case cmbRefs.ItemIndex of
0: OpenURL(IntroLink1);
1: OpenURL(IntroLink2);
2: OpenURL(DirectivesLink);
3: OpenURL(VersionsLink);
end;
end;
procedure TfrmDelphiVersionsMobile.FormActivate(Sender: TObject);
begin
if FFirstTime then begin
FFirstTime := False;
GetConditionalDefines(ShowCompilerDefine);
SetupReferenceLinks;
lblIntro.Text := IntroText;
end;
end;
procedure TfrmDelphiVersionsMobile.FormCreate(Sender: TObject);
begin
FFirstTime := True;
end;
end.