1 |
(* |
2 |
* IBX For Lazarus (Firebird Express) |
3 |
* |
4 |
* The contents of this file are subject to the Initial Developer's |
5 |
* Public License Version 1.0 (the "License"); you may not use this |
6 |
* file except in compliance with the License. You may obtain a copy |
7 |
* of the License here: |
8 |
* |
9 |
* http://www.firebirdsql.org/index.php?op=doc&id=idpl |
10 |
* |
11 |
* Software distributed under the License is distributed on an "AS |
12 |
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
13 |
* implied. See the License for the specific language governing rights |
14 |
* and limitations under the License. |
15 |
* |
16 |
* The Initial Developer of the Original Code is Tony Whyman. |
17 |
* |
18 |
* The Original Code is (C) 2014 Tony Whyman, MWA Software |
19 |
* (http://www.mwasoftware.co.uk). |
20 |
* |
21 |
* All Rights Reserved. |
22 |
* |
23 |
* Contributor(s): ______________________________________. |
24 |
* |
25 |
*) |
26 |
unit IBXViewLogDig; |
27 |
|
28 |
{$mode objfpc}{$H+} |
29 |
|
30 |
interface |
31 |
|
32 |
uses |
33 |
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; |
34 |
|
35 |
type |
36 |
|
37 |
{ TViewLogDlg } |
38 |
|
39 |
TViewLogDlg = class(TForm) |
40 |
Button1: TButton; |
41 |
Label1: TLabel; |
42 |
Memo1: TMemo; |
43 |
private |
44 |
{ private declarations } |
45 |
public |
46 |
{ public declarations } |
47 |
function ShowModal(Log: TStrings): TModalResult; |
48 |
end; |
49 |
|
50 |
var |
51 |
ViewLogDlg: TViewLogDlg; |
52 |
|
53 |
function ShowViewLogDlg(Log: TStrings): TModalResult; |
54 |
|
55 |
implementation |
56 |
|
57 |
function ShowViewLogDlg(Log: TStrings): TModalResult; |
58 |
begin |
59 |
with TViewLogDlg.Create(Application) do |
60 |
try |
61 |
Result := ShowModal(Log); |
62 |
finally |
63 |
Free |
64 |
end; |
65 |
end; |
66 |
|
67 |
{$R *.lfm} |
68 |
|
69 |
{ TViewLogDlg } |
70 |
|
71 |
function TViewLogDlg.ShowModal(Log: TStrings): TModalResult; |
72 |
begin |
73 |
Memo1.Lines.Assign(Log); |
74 |
Result := inherited ShowModal; |
75 |
Memo1.Lines.Clear |
76 |
end; |
77 |
|
78 |
end. |
79 |
|