interface
uses
StdCtrls, ComCtrls,
DB, ZAbstractRODataset, ZAbstractDataset, ZDataset,
ZConnection, Graphics, SysUtils, DumbCrypt, Messages, Dialogs, Forms,
Classes, UNITTCONTACTFORM;
type
TSearchContactForm =
class(TContactForm)
SearchField: TEdit;
procedure FormCreate(Sender: TObject);
procedure SearchFieldKeyDown(Sender: TObject;
var Key: Word; Shift: TShiftState);
private
public
end;
TSettings =
record
skin:
String[100];
color: TColor;
boxcolor: TColor;
logo:
String[255];
winstart: Boolean;
host:
String[100];
port: Integer;
Name:
String[30];
User:
String[30];
Pass:
String[50];
end;
function AssignConfigFile(filename:
String): Boolean;
function InitDBConnection(ZConnection: TZConnection): Boolean;
function getSesstings:TSesstings;
implementation
var
dSettings: TSettings;
function getSesstings:TSesstings;
begin
Result:=dSettings;
end;
function AssignConfigFile(filename:
String): Boolean;
var
fSettings:
file of TSettings;
begin
{...}
end;
function InitDBConnection(ZConnection: TZConnection): Boolean;
begin
{...}
end;
procedure TSearchContactForm.SearchFieldKeyDown(Sender: TObject;
var Key: Word; Shift: TShiftState);
begin
ShowMessage('
SD');
end;