1:dBGridEh1.Columns[0].OnEditButtonClick:=gettext(Sender,true);\\我这样使用下面过程出错?2:dBGridEh1.Columns[0].OnEditButtonClick:=gettext;\\这样又行如果我一定要使用第1种方法,怎样写?procedure TForm1.gettext(Sender: TObject; var Handled: Boolean); begin // end;
gettext(Sender,true);this way is to call the gettext functionbut gettext is not, it's only the entry address of function gettext then when you type this dBGridEh1.Columns[0].OnEditButtonClick:=gettext;mean: the event's handler proceudre is the gettext procedure...
dBGridEh1.Columns[0].OnEditButtonClick:=gettext;mean: the event's handler proceudre is the gettext procedure...
dBGridEh1.Columns[0].OnEditButtonClick:=gettext;