A
amer
Unregistered / Unconfirmed
GUEST, unregistred user!
type
TCloseQueryEvent=procedure (Sender:TObject; Var CanClose:Boolean)of Object;
TCloseButton = class(TButton)
private
FOnCloseQuery:TCloseQueryEvent;
procedure TCloseButton.CloseQuery;
begin
if assigned(FOnCloseQuery) then
FOnCloseQuery(self,FCanClose);
加横线的这个句话是什么意思啊?
FOnCloseQuery也不是个过程啊?为什么要这样写啊??
self这里不是Sender:TObject类型吗,用self干什么啊??
请告诉我吧,谢了。。。:)
TCloseQueryEvent=procedure (Sender:TObject; Var CanClose:Boolean)of Object;
TCloseButton = class(TButton)
private
FOnCloseQuery:TCloseQueryEvent;
procedure TCloseButton.CloseQuery;
begin
if assigned(FOnCloseQuery) then
FOnCloseQuery(self,FCanClose);
加横线的这个句话是什么意思啊?
FOnCloseQuery也不是个过程啊?为什么要这样写啊??
self这里不是Sender:TObject类型吗,用self干什么啊??
请告诉我吧,谢了。。。:)