home *** CD-ROM | disk | FTP | other *** search
- unit DBTestMain;
-
- {*********************************************************************
- Please NOTE: *********
-
- In order for this sample to run, please ensure that the path in which
- agnieyespy.dcu resides is included in your library path, or in the
- search path of this project.
-
- This project uses the DBDEMOS BDE alias, and the table named as Animals.DBF
-
- When you run this project click on the Create Eye Spy menu, to bring up
- Agni's Eye Spy. You can click on Free Eye Spy to hide Agni's Eye Spy.
-
- *********************************************************************}
-
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- AgniEyeSpy, Menus, Db, DBTables, Grids, DBGrids, StdCtrls, DBCtrls,
- ExtCtrls;
-
- type
- TForm1 = class(TForm)
- MainMenu1: TMainMenu;
- CreateEyeSpy1: TMenuItem;
- FreeEyeSpy1: TMenuItem;
- Table1: TTable;
- DataSource1: TDataSource;
- DBGrid1: TDBGrid;
- Label1: TLabel;
- DBText1: TDBText;
- DBText2: TDBText;
- Label2: TLabel;
- Label3: TLabel;
- Bevel1: TBevel;
- procedure CreateEyeSpy1Click(Sender: TObject);
- procedure FreeEyeSpy1Click(Sender: TObject);
- procedure Table1AfterScroll(DataSet: TDataSet);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.CreateEyeSpy1Click(Sender: TObject);
- begin
- CreateEyeSpy;
- end;
-
- procedure TForm1.FreeEyeSpy1Click(Sender: TObject);
- begin
- FreeEyeSpy;
- end;
-
- procedure TForm1.Table1AfterScroll(DataSet: TDataSet);
- begin
- MessageBeep(-1);
- end;
-
- end.
-