forked from Noso-Project/NosoLite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
infoform.pas
56 lines (38 loc) · 892 Bytes
/
infoform.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
unit infoform;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls;
type
{ TForm3 }
TForm3 = class(TForm)
memoresult: TMemo;
memorequest: TMemo;
Label1: TLabel;
Label2: TLabel;
Panelresult: TPanel;
Panelrequest: TPanel;
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
private
public
end;
Procedure ShowInfoform(RequestText,ResultText:String);
var
Form3: TForm3;
implementation
{$R *.lfm}
uses
nl_mainform;
{ TForm3 }
Procedure ShowInfoform(RequestText,ResultText:String);
Begin
form3.BorderIcons:=form3.BorderIcons+[bisystemmenu];
form3.memorequest.Text:=RequestText;
form3.memoresult.Text:=ResultText;
form3.ShowModal;
End;
procedure TForm3.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
form1.enabled := true;
end;
END. // END UNIT