J joshua_jia Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #1 如何判斷KEYPRESS事件? 當我在按下某一按鍵後,要讓它跟著輸出該按鍵的Ascii碼值,請問該如何判斷
Q qianwt Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #3 ShowMesseage(IntToStr(Key))
Y yczjs Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-04 #4 procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin Label1.Caption:=IntToStr(Ord(key)); end;
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin Label1.Caption:=IntToStr(Ord(key)); end;