C chenp1688 Unregistered / Unconfirmed GUEST, unregistred user! 2009-07-21 #1 各位老师;我用TActionManager做了一个界面上的快捷按钮"保存" "退出"编码:edit1名称:edit2问:怎样才能在edit2按回车键后"保存"按钮获取焦点?
D de410 Unregistered / Unconfirmed GUEST, unregistred user! 2009-07-21 #2 procedure TForm1.Edit2KeyPress(Sender: TObject; var Key: Char);begin if key=#13 then Button1.SetFocus;end;
procedure TForm1.Edit2KeyPress(Sender: TObject; var Key: Char);begin if key=#13 then Button1.SetFocus;end;
C chenp1688 Unregistered / Unconfirmed GUEST, unregistred user! 2009-07-22 #3 de410我是用TActionManager做的,不是Button1!