很简单,
有EDIT1,EDIT2我想在输入EDIT1完后按下回车,焦点就转到EDIT2,可是我忘了回车键是怎么判断的了是在EDIT1的OnEnter事件写代码,是吗??代码怎么写了??if (????)
   edit2.???=true
快啊~~我急!!!

解决方案 »

  1.   

    onKeyPressif key = #13 then
      .......
      

  2.   

    OnKeyPressif Key = #13 then
    begin
      Key := #0
      Edit2.SetFocus;
    end;
      

  3.   

    edit1.onkeypress
      if key=#13 then
         begin
            edit2.selectall;
            edit2.setfocus;
         end;
      

  4.   

    if Key = #13 then
    begin
      Key := #0
      Edit2.SetFocus;
    end;
      

  5.   

    edit1.onkeypress
      if key=Vk_Return then
         begin
            edit2.selectall;
            edit2.setfocus;
         end;
      

  6.   

    edit1.onkeypress
      if key=Vk_Return then
         begin
            edit2.selectall;
            edit2.setfocus;
         end;  
      

  7.   

    用第三方控件好了,设置TAB的数值可以直接转换焦点!
    例如raize3.0