C caoyanjuan Unregistered / Unconfirmed GUEST, unregistred user! 2002-02-26 #1 我自己写了个组件由Edit继承过来的,想在onchange事件里东东,该怎样声明onchang事件
H hamsoft Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-05 #3 FOnChange: TNotifyEvent; procedure Change; dynamic; property OnChange: TNotifyEvent read FOnChange write FOnChange; procedure Txxxxx.Change; begin Changed; if Assigned(FOnChange) then FOnChange(Self); end; procedure Txxxxx.xxxx; begin //code // Changed; end;
FOnChange: TNotifyEvent; procedure Change; dynamic; property OnChange: TNotifyEvent read FOnChange write FOnChange; procedure Txxxxx.Change; begin Changed; if Assigned(FOnChange) then FOnChange(Self); end; procedure Txxxxx.xxxx; begin //code // Changed; end;