B
Beast
Unregistered / Unconfirmed
GUEST, unregistred user!
type
TstComboBox = class(TComboBox)
published
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('TestCompontent', [TstComboBox]);
end;
constructor TstComboBox.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TstComboBox.Destroy;
var
i :integer;
begin
for i:=0 to Self.Items.Count-1 do begin
Self.Items.Objects:=nil;
end;
inherited;
end;
TstComboBox = class(TComboBox)
published
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('TestCompontent', [TstComboBox]);
end;
constructor TstComboBox.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TstComboBox.Destroy;
var
i :integer;
begin
for i:=0 to Self.Items.Count-1 do begin
Self.Items.Objects:=nil;
end;
inherited;
end;