線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:869
推到 Plurk!
推到 Facebook!

TRichEdit无法用键盘翻页

答題得分者是:turboted
vclphi
一般會員


發表:28
回覆:39
積分:13
註冊:2003-03-06

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-05-27 10:55:13 IP:218.5.xxx.xxx 未訂閱
请教个问题.我的pagecontrol1的tabsheet2(tabsheet2不是动态自己创建的)上有一个TRichEdit,现用TRichEdit大开文件时,无法用键盘的PageUP 及PageDown键来翻页。若TRichEdit直接放在Form1上,而非在tabsheet2上,可用设置Form1的ActiveControl Events为RichEdit1来实现,现在该如何呢? 發表人 - vclphi 於 2003/05/27 11:13:32
turboted
版主


發表:95
回覆:754
積分:452
註冊:2002-07-23

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-05-27 11:39:23 IP:210.241.xxx.xxx 未訂閱
會嗎 需要什麼ActiveControl Events嗎 我直接放一個RichEdit 在Form上面 然後用 for (int i = 0 ; i <100 ;i ) RichEdit1->Lines->Add("test"); 把資料寫入 點選RichEdit ,再按PageUpDown都非常的正常 完全沒有改變任何的設定
vclphi
一般會員


發表:28
回覆:39
積分:13
註冊:2003-03-06

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-05-27 15:26:59 IP:218.5.xxx.xxx 未訂閱
报歉,是我画蛇添足,我看DELPHI的Demos的RichEdit 例子中设置Form1的ActiveControl Events,以为是必须的。请问这ActiveControl Events是干什么的?看Help说明,好像是处理键盘,Mouse等的focus的。
turboted
版主


發表:95
回覆:754
積分:452
註冊:2002-07-23

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-05-27 15:36:02 IP:210.241.xxx.xxx 未訂閱
取自於help on -line
se ActiveControl to get or set the control that has focus on the form. Only one control can have focus at a given time in an application.    If the form does not have focus, ActiveControl is the control on the form that will receive focus when the form receives focus.    Note:        When focus shifts to another control, ActiveControl is updated before the OnExit event occurs.
系統時間:2024-05-04 20:26:27
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!