zeoslib  UNKNOWN
 All Files
ZSqlTestForm.pas
Go to the documentation of this file.
1 {*********************************************************}
2 { }
3 { Zeos Database Objects }
4 { SQL Monitor component }
5 { }
6 { Originally written by Sergey Seroukhov }
7 { }
8 {*********************************************************}
9 
10 {@********************************************************}
11 { Copyright (c) 1999-2012 Zeos Development Group }
12 { }
13 { License Agreement: }
14 { }
15 { This library is distributed in the hope that it will be }
16 { useful, but WITHOUT ANY WARRANTY; without even the }
17 { implied warranty of MERCHANTABILITY or FITNESS FOR }
18 { A PARTICULAR PURPOSE. See the GNU Lesser General }
19 { Public License for more details. }
20 { }
21 { The source code of the ZEOS Libraries and packages are }
22 { distributed under the Library GNU General Public }
23 { License (see the file COPYING / COPYING.ZEOS) }
24 { with the following modification: }
25 { As a special exception, the copyright holders of this }
26 { library give you permission to link this library with }
27 { independent modules to produce an executable, }
28 { regardless of the license terms of these independent }
29 { modules, and to copy and distribute the resulting }
30 { executable under terms of your choice, provided that }
31 { you also meet, for each linked independent module, }
32 { the terms and conditions of the license of that module. }
33 { An independent module is a module which is not derived }
34 { from or based on this library. If you modify this }
35 { library, you may extend this exception to your version }
36 { of the library, but you are not obligated to do so. }
37 { If you do not wish to do so, delete this exception }
38 { statement from your version. }
39 { }
40 { }
41 { The project web site is located on: }
42 { http://zeos.firmos.at (FORUM) }
43 { http://sourceforge.net/p/zeoslib/tickets/ (BUGTRACKER)}
44 { svn://svn.code.sf.net/p/zeoslib/code-0/trunk (SVN) }
45 { }
46 { http://www.sourceforge.net/projects/zeoslib. }
47 { }
48 { }
49 { Zeos Development Group. }
50 {********************************************************@}
51 
52 unit ZSqlTestForm;
53 
54 {$I ZComponent.inc}
55 
56 interface
57 
58 uses
59 
60 {$IFDEF MSWINDOWS}
61  Windows, Messages,
62 {$ENDIF}
63  Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls,
64  DBGrids, Buttons, DB, ZDataset, ZMessages;
65 
66 type
67 
68  { TZeosSQLEditorTestForm }
69 
70  TZeosSQLEditorTestForm = class(TForm)
71  private
72  { private declarations }
73  Button1: TButton;
74  Datasource1: TDatasource;
75  dbGrid1: TdbGrid;
76  Panel1: TPanel;
77  public
78  { public declarations }
79  ZeosSQL: TZReadOnlyQuery;
80  constructor Create(AOwner: TComponent);
81  end;
82 
83 var
84  ZeosSQLEditorTestForm: TZeosSQLEditorTestForm;
85 
86 implementation
87 
88 constructor TZeosSQLEditorTestForm.Create(AOwner: TComponent);
89 begin
90  inherited Create(AOwner);
91  Caption := SFormTest;
92  ClientHeight := 300;
93  ClientWidth := 683;
94  Height := 300;
95  Left := 291;
96  Top := 323;
97  Width := 683;
98  ZeosSQL := TZReadOnlyQuery.Create(self);
99  Datasource1 := TDataSource.Create(self);
100  Datasource1.DataSet := ZeosSQL;
101  Panel1 := TPanel.Create(self);
102  with Panel1 do
103  begin
104  Parent := self;
105  Anchors := [akTop,akLeft,akRight];
106  Align := alTop;
107  Left :=0;
108  Height := 42;
109  Top := 0;
110  Width := 683;
111  TabStop := False;
112  end;
113  Button1 := TButton.Create(self);
114  with Button1 do
115  begin
116  Parent := Panel1;
117  Anchors := [akTop,akLeft];
118  Cancel := True;
119  Default := True;
120  ModalResult := mrOk;
121  Caption := SButtonClose;
122  Left := 600;
123  Height := 25;
124  Top := 8;
125  Width := 75;
126  TabOrder := 0;
127  TabStop := True;
128  end;
129  dbGrid1 := TdbGrid.Create(self);
130  with dbGrid1 do
131  begin
132  Parent := self;
133  Anchors := [akTop,akLeft,akRight,akBottom];
134  DataSource := Datasource1;
135  Options := [dgTitles,dgIndicator,dgColumnResize,dgColLines,dgRowLines,
136  dgTabs,dgAlwaysShowSelection,dgConfirmDelete,dgCancelOnExit];
137  ReadOnly := True;
138  Align := alClient;
139  DefaultRowHeight := 24;
140  Left := 0;
141  Height := 258;
142  TabOrder := 1;
143  TabStop := True;
144  Top := 42;
145  Width := 683;
146  end;
147 end;
148 
149 end.
150