1 {*********************************************************}
3 { Zeos Database Objects }
4 { SQL Monitor component }
6 { Originally written by Sergey Seroukhov }
8 {*********************************************************}
10 {@********************************************************}
11 { Copyright (c) 1999-2012 Zeos Development Group }
13 { License Agreement: }
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. }
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. }
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) }
46 { http://www.sourceforge.net/projects/zeoslib. }
49 { Zeos Development Group. }
50 {********************************************************@}
63 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls,
64 DBGrids, Buttons, DB, ZDataset, ZMessages;
68 { TZeosSQLEditorTestForm }
70 TZeosSQLEditorTestForm = class(TForm)
72 { private declarations }
74 Datasource1: TDatasource;
78 { public declarations }
79 ZeosSQL: TZReadOnlyQuery;
80 constructor Create(AOwner: TComponent);
84 ZeosSQLEditorTestForm: TZeosSQLEditorTestForm;
88 constructor TZeosSQLEditorTestForm.Create(AOwner: TComponent);
90 inherited Create(AOwner);
98 ZeosSQL := TZReadOnlyQuery.Create(self);
99 Datasource1 := TDataSource.Create(self);
100 Datasource1.DataSet := ZeosSQL;
101 Panel1 := TPanel.Create(self);
105 Anchors := [akTop,akLeft,akRight];
113 Button1 := TButton.Create(self);
117 Anchors := [akTop,akLeft];
121 Caption := SButtonClose;
129 dbGrid1 := TdbGrid.Create(self);
133 Anchors := [akTop,akLeft,akRight,akBottom];
134 DataSource := Datasource1;
135 Options := [dgTitles,dgIndicator,dgColumnResize,dgColLines,dgRowLines,
136 dgTabs,dgAlwaysShowSelection,dgConfirmDelete,dgCancelOnExit];
139 DefaultRowHeight := 24;