TMyEdit = class(TEdit)
private
{ Private-Deklarationen }
FMyStr: string;
procedure SetMyStr(Value:string);//设置MyStr属性的值
protected
{ Protected-Deklarationen }
public
{ Public-Deklarationen }
published
{ Published-Deklarationen }
property MyStr: String read FMyStr write setMyStr;//告诉系统到哪里去读写该属性的值
end;
....
procedure TMyEdit.SetMyStr(Value:string);
begin
FMyStr:=Value;
end;
累死我了!
多看看标准控件的源代码
private
{ Private-Deklarationen }
FMyStr: string;
procedure SetMyStr(Value:string);//设置MyStr属性的值
protected
{ Protected-Deklarationen }
public
{ Public-Deklarationen }
published
{ Published-Deklarationen }
property MyStr: String read FMyStr write setMyStr;//告诉系统到哪里去读写该属性的值
end;
....
procedure TMyEdit.SetMyStr(Value:string);
begin
FMyStr:=Value;
end;
累死我了!
多看看标准控件的源代码
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货