forked from groehner/JavaEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUMemo.pas
More file actions
48 lines (37 loc) · 877 Bytes
/
UMemo.pas
File metadata and controls
48 lines (37 loc) · 877 Bytes
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
unit UMemo;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, FMXUtils;
type
TFMemo = class(TForm)
MInstallation: TMemo;
BClose: TButton;
procedure BCloseClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
public
Installation: Integer;
procedure Output(s: String);
end;
var
FMemo: TFMemo;
implementation
uses USetup;
{$R *.DFM}
procedure TFMemo.Output(s: String);
begin
MInstallation.Lines.Add(s);
end;
procedure TFMemo.BCloseClick(Sender: TObject);
begin
case Installation of
0: ExecuteFile(FSetup.ToDir + 'JavaEditor.exe', '', '', SW_ShowNormal);
1: ExecuteFile(GetTempDir + 'RunJava.bat', '', '', SW_Hide);
end;
FSetup.Close;
end;
procedure TFMemo.FormCreate(Sender: TObject);
begin
Installation:= 2
end;
end.