home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 September
/
Chip_2002-09_cd1.bin
/
zkuste
/
delphi
/
kompon
/
d3456
/
SQLSET.ZIP
/
D3-5
/
SQLSTREG.PAS
Wrap
Pascal/Delphi Source File
|
2001-05-20
|
735b
|
40 lines
unit SqlStreg;
interface
uses
Dsgnintf, Classes, Dialogs;
procedure Register;
implementation
Uses
SQLSet, SQLsEdit;
type
TSQLItemsProperty = class(TClassProperty)
public
procedure Edit; override;
function GetAttributes: TPropertyAttributes; override;
end;
procedure TSQLItemsProperty.Edit;
begin
if EditSQLItems(GetComponent(0) as TSQLSet) then Modified;
end;
function TSQLItemsProperty.GetAttributes: TPropertyAttributes;
begin
Result := [paDialog, paReadOnly];
end;
procedure Register;
begin
RegisterComponents('AnsiPars', [TSQLSet]);
RegisterPropertyEditor(TypeInfo(TSQLItems), TSQLSet, '', TSQLItemsProperty);
end;
end.