CEGUI編輯框輸入中文的解決方案

2021-05-25 06:28:26 字數 595 閱讀 6690

首先解決的是你要有乙個支援中文的字型檔案,然後模仿cegui的.font檔案製作乙個屬於自己的.font檔案,然後把它放進.scheme集中資源管理器中,這樣在載入資源的時候就會載入自己做的.font檔案了。

下一步你需要在ceguisystem.h裡面載新增乙個 _injectchar(utf32 code_point );函式

下面是函式實現:

bool system::_injectchar(utf32 code_point )

else if( uch >= 0xa1 )

else

}else

#else

return injectchar(code_point );

#endif}

ok,最重要的事情做完了。

下一步就是開始呼叫他了

if (immisime(getkeyboardlayout(0)))

else

具體的你想要把它放到**我就不管了,只是還有一點要宣告啊,就是在呼叫它的.cpp檔案裡面加上

#include

#pragma comment(lib,"imm32.lib")

大功告成,趕緊去試試吧

模擬Nokia手機輸入的編輯框

inte ce uses sysutils,classes,controls,stdctrls,extctrls,dialogs type keysetint 1.9 1表示發生錯誤 tnokiaedit class tcustomedit private finterval integer fke...

編輯框的使用

分類 一行 多行 密碼 編輯框的使用 風格 es autohscroll 水平滾動 可聯合ws hscroll水平滾動條風格一起使用 es autovscroll 垂直滾動 可聯合ws vscroll垂直滾動條風格一起使用 es password 密碼.不能和es multiline一起使用,只適合...

symbian 編輯框 如何設定預設輸入法?

公尺度軟體 www.midosoft.cn 中文輸入法 可能是拼音或筆畫等 iedwin setakneditorlocallanguage elangprcchinese 寫死為拼音輸入法 iedwin setakneditorcurrentinputmode echinfepcmdmodepin...