『delphi』Enter键移动焦点的效果

procedure Tlogin.Edit1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if key=vk_return then
    FindNextControl(ActiveControl,true,false,false).SetFocus;
end;

end.
其他的的KeyDown选中Edit1的就可以了 

posted on 2020-10-04 13:49  癫狂编程  阅读(178)  评论(0编辑  收藏  举报

导航

好的代码像粥一样,都是用时间熬出来的