-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathumain.pas
More file actions
46 lines (31 loc) · 743 Bytes
/
umain.pas
File metadata and controls
46 lines (31 loc) · 743 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
unit umain;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,
uhttp, BGRAShape, LCLIntF;
type
{ TfrmLazPaint }
TfrmLazPaint = class(TForm)
BGRAShape1: TBGRAShape;
btnOpenURL: TButton;
procedure btnOpenURLClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
fTCPHttpDaemon: TTCPHttpDaemon;
public
end;
var
frmLazPaint: TfrmLazPaint;
implementation
{$R *.lfm}
{ TfrmLazPaint }
procedure TfrmLazPaint.FormCreate(Sender: TObject);
begin
fTCPHttpDaemon := TTCPHttpDaemon.Create(Application.Location + 'htdocs');
end;
procedure TfrmLazPaint.btnOpenURLClick(Sender: TObject);
begin
openurl('http://localhost:8000/');
end;
end.