/
viewview.pas
52 lines (38 loc) · 885 Bytes
/
viewview.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
unit ViewView;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
StdCtrls, Buttons, SynEdit, SynHighlighterSQL;
type
{ TfmViewView }
TfmViewView = class(TForm)
bbClose: TBitBtn;
edName: TEdit;
Label1: TLabel;
Label2: TLabel;
seScript: TSynEdit;
SynSQLSyn1: TSynSQLSyn;
procedure bbCloseClick(Sender: TObject);
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
private
{ private declarations }
public
{ public declarations }
end;
var
fmViewView: TfmViewView;
implementation
{ TfmViewView }
procedure TfmViewView.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
CloseAction:= caFree;
end;
procedure TfmViewView.bbCloseClick(Sender: TObject);
begin
Close;
Parent.Free;
end;
initialization
{$I viewview.lrs}
end.