T tcq Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-21 #1 一个edit,一个button,怎样在edit中输入完字符并按下Enter后才激活button事件? thank you!
Z zhaixiaobo Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-21 #2 procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin if key=#13 then button2click(self); end;
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin if key=#13 then button2click(self); end;
H hbezwwl Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-21 #3 在edit的onkeypress事件中: if Key = #13 then buttonclick(self);
N nlgeng Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-25 #5 我用的是spinedit,也应该可以的吧。 但是怎么没反应呢?