-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathuAbout.pas
More file actions
58 lines (50 loc) · 1.01 KB
/
uAbout.pas
File metadata and controls
58 lines (50 loc) · 1.01 KB
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
unit UABOUT;
interface
uses WinApi.Windows, System.SysUtils, System.Classes, Vcl.Graphics,
Vcl.Forms, Vcl.Controls, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls;
type
TAboutBox = class(TForm)
Panel1: TPanel;
ProgramIcon: TImage;
ProductName: TLabel;
Version: TLabel;
Copyright: TLabel;
Comments: TLabel;
OKButton: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;
var
AboutBox: TAboutBox;
procedure Display_About; export; stdcall;
function Add(x,y:integer):integer; export; stdcall;
function Sub(x,y:integer):integer; export; stdcall;
function Divide(x,y:real):real; export; stdcall;
implementation
procedure Display_About;
var
Abox:TAboutBox;
begin
Abox := TAboutBox.Create(nil);
try
ABox.ShowModal;
finally
Abox.Free;
end;
end;
function Add(x,y:integer):integer;
begin
result := x + y;
end;
function Sub(x,y:integer):integer;
begin
result := x - y;
end;
function Divide(x,y:real):real;
begin
result := x / y;
end;
{$R *.dfm}
end.