A apiaor Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #1 我在richedit中写字符串,当输入回车换行时要弹出一个对话框,请问调用什么函数判断我正<br>输入回车键!
Y yeath Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #2 procedure TForm1.RichEdit1KeyPress(Sender: TObject; var Key: Char);<br>begin<br> if key=#13 then<br> begin<br> showmessage('按回车键');<br> end;<br>end;<br>在keypress事件里加上面的代码。<br>
procedure TForm1.RichEdit1KeyPress(Sender: TObject; var Key: Char);<br>begin<br> if key=#13 then<br> begin<br> showmessage('按回车键');<br> end;<br>end;<br>在keypress事件里加上面的代码。<br>
Q qianwt Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #3 OnKeyDown事件中<br>if Key = VK_RETURN then <br> ShowMessage('');
Y YFeral Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #5 在 KeyDown中<br>if (Shift = [ssCtrl] ) and(Key = VK_RETURN) then<br>begin<br>//你的代码 <br>end;