Y yanlei Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-13 #1 如何判断一个Twincontrol的那些事件已经赋(值),那些为空, 可以 buttton1.onclick:=nil 如何判断为nil或者没有对应事件
B bluerain Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-13 #3 同意楼上,就是assigned. 看看delphi的source文件中一大堆 if Assigned(FOnMouseEnter) then FOnMouseEnter(Self);
X xianjun Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-13 #4 直接判断也可以呀: if Button1.Onclick = nil then
Y YNTW Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-13 #7 if Not Assigned(事件) then ShowMessage('Nil');