請問如何能夠按tab order次序得到focus? |
尚未結案
|
donlly
一般會員 ![]() ![]() 發表:45 回覆:73 積分:23 註冊:2004-11-30 發送簡訊給我 |
|
Fishman
尊榮會員 ![]() ![]() ![]() ![]() ![]() ![]() 發表:120 回覆:1949 積分:2163 註冊:2006-10-28 發送簡訊給我 |
Hi donlly, 請參考 http://delphi.ktop.com.tw/topic.php?topic_id=42400
http://delphi.ktop.com.tw/topic.php?topic_id=48675
http://delphi.ktop.com.tw/topic.php?topic_id=57783
http://delphi.ktop.com.tw/topic.php?topic_id=58334 1.set form.KeyPreview to True 2.Form.OnKeyPress Event
procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char); begin if key=#13 then Perform(WM_NEXTDLGCTL,0,0); end;
------
Fishman |
donlly
一般會員 ![]() ![]() 發表:45 回覆:73 積分:23 註冊:2004-11-30 發送簡訊給我 |
|
Fishman
尊榮會員 ![]() ![]() ![]() ![]() ![]() ![]() 發表:120 回覆:1949 積分:2163 註冊:2006-10-28 發送簡訊給我 |
Hi donlly, Perform :
Responds as if the control received a specified Windows message. Delphi syntax:
function Perform(Msg: Cardinal; WParam, LParam: Longint): Longint; Call Perform to bypass the Windows message queue and send a message directly to the control? window procedure. Perform fills a message record (of type TMessage) with the message ID passed in the Msg parameter, the message parameters passed in WParam and LParam, and a result field of zero. Perform then passes the message record to the WindowProc method for processing. Come from D7 Help
------
Fishman |
P.D.
版主 ![]() ![]() ![]() ![]() ![]() ![]() 發表:603 回覆:4038 積分:3874 註冊:2006-10-31 發送簡訊給我 |
|
arvin
一般會員 ![]() ![]() 發表:12 回覆:9 積分:4 註冊:2002-09-11 發送簡訊給我 |
|
donlly
一般會員 ![]() ![]() 發表:45 回覆:73 積分:23 註冊:2004-11-30 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |