Z
zhlfdm
Unregistered / Unconfirmed
GUEST, unregistred user!
project project1.exe raised exception class Ereaderror with message 'property color_r does not exist'.process stopped. use step or run to continue(200分)<br />如题目所示,我在做的控件中应用时出的。。不知如何解决。。
project project1.exe raised exception class Ereaderror with message 'property color_r does not exist'.process stopped. use step or run to continue
TLD = class(TGraphicControl)
private
{ Private declarations }
Ftimer:Ttimer;
Fcolor:tcolor;
Fcolor_r: tcolor;
Fcolor_x: tcolor;
FInterval: integer;
Fenable: boolean;
procedure Setcolor_r(const Value: tcolor);
procedure Setcolor_x(const Value: tcolor);
//timer变换颜色过程
procedure TimerProc(Sender:Tobject);
procedure SetInterval(const Value: integer);
procedure Setenable(const Value: boolean);
protected
{ Protected declarations }
public
{ Public declarations }
constructor create(AOwner : TComponent);override;
procedure paint;override;
destructor Destroy;override;
published
{ Published declarations }
property color_r:tcolor read Fcolor_r write Setcolor_r;
property color_x:tcolor read Fcolor_x write Setcolor_x;
property Interval:integer read FInterval write SetInterval;
property enable:boolean read Fenable write Setenable;
end;
project project1.exe raised exception class Ereaderror with message 'property color_r does not exist'.process stopped. use step or run to continue
TLD = class(TGraphicControl)
private
{ Private declarations }
Ftimer:Ttimer;
Fcolor:tcolor;
Fcolor_r: tcolor;
Fcolor_x: tcolor;
FInterval: integer;
Fenable: boolean;
procedure Setcolor_r(const Value: tcolor);
procedure Setcolor_x(const Value: tcolor);
//timer变换颜色过程
procedure TimerProc(Sender:Tobject);
procedure SetInterval(const Value: integer);
procedure Setenable(const Value: boolean);
protected
{ Protected declarations }
public
{ Public declarations }
constructor create(AOwner : TComponent);override;
procedure paint;override;
destructor Destroy;override;
published
{ Published declarations }
property color_r:tcolor read Fcolor_r write Setcolor_r;
property color_x:tcolor read Fcolor_x write Setcolor_x;
property Interval:integer read FInterval write SetInterval;
property enable:boolean read Fenable write Setenable;
end;