-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnitSplashSolverMin.pas
62 lines (51 loc) · 1.1 KB
/
UnitSplashSolverMin.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
unit UnitSplashSolverMin;
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
interface
uses
{$IFnDEF FPC}
Windows,
{$ELSE}
LCLIntf, LCLType, LMessages,
{$ENDIF}
Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls, ComCtrls;
type
T_FormSplashSolver=class(TForm)
Image1: TImage;
LabelDataLoading: TLabel;
ProgressBar: TProgressBar;
Image2: TImage;
Label2: TLabel;
Label3: TLabel;
ButtonOK: TButton;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure ButtonOKKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
private
{ Private declarations }
public
{ Public declarations }
end;
var
_FormSplashSolver: T_FormSplashSolver;
implementation
{$IFnDEF FPC}
{$R *.frm}
{$ELSE}
{$R *.frm}
{$ENDIF}
procedure T_FormSplashSolver.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
ButtonOK.Visible:= False;
ProgressBar.Visible:= True;
LabelDataLoading.Visible:= True;
end;
procedure T_FormSplashSolver.ButtonOKKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if key=VK_ESCAPE then Close;
end;
end.