unit TEST;
interface
uses
SysUtils, Classes;
type TTesttype = (clTest1,clTest2,clTest3);
type
TTEST = class(TComponent)
private
FTesttype : TTesttype;
procedure SetTesttype(Value : TTesttype);
{ Private declarations }
protected
{ Protected declarations }
public
{ Public declarations }
published
property Testtype :TTesttype read FTesttype write SetTesttype;
{ Published declarations }
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Samples', [TTEST]);
end;
{ TTEST }
procedure TTEST.SetTesttype(Value: TTesttype);
begin
//Add you code
end;
end.