CEikRichTextEditor 切换中文
2010-06-28 22:34
106 查看
iRichTextEditor= new (ELeave) CEikGlobalTextEditor();
iRichTextEditor->SetContainerWindowL(*this);
iRichTextEditor->ConstructL(this, 1, 0, EEikEdwinResizable, EGulFontControlAll,EGulAllFonts);
iRichTextEditor->SetBackgroundColorL(TRgb(255, 255, 255));
iRichTextEditor->SetAvkonWrap(ETrue);
iRichTextEditor->SetAknEditorInputMode(EAknEditorAllInputModes);
//iRichTextEditor->SetAknEditorAllowedInputModes(EAknEditorSecretAlphaInputMode | EAknEditorNumericInputMode);
iRichTextEditor->SetBorder(TGulBorder::ENone);
iRichTextEditor->SetFocus(EFalse);
iRichTextEditor->SetMaxLength(64);
iRichTextEditor->SetExtent( KRichTextPoint, KRichTextSize );
需要注意的问题,在构造VIEW的时候,BaseConatructL()必须传进去一个定义的VIEW资源,要不切换不成功,搞了两天,想不明白.
iRichTextEditor->SetContainerWindowL(*this);
iRichTextEditor->ConstructL(this, 1, 0, EEikEdwinResizable, EGulFontControlAll,EGulAllFonts);
iRichTextEditor->SetBackgroundColorL(TRgb(255, 255, 255));
iRichTextEditor->SetAvkonWrap(ETrue);
iRichTextEditor->SetAknEditorInputMode(EAknEditorAllInputModes);
//iRichTextEditor->SetAknEditorAllowedInputModes(EAknEditorSecretAlphaInputMode | EAknEditorNumericInputMode);
iRichTextEditor->SetBorder(TGulBorder::ENone);
iRichTextEditor->SetFocus(EFalse);
iRichTextEditor->SetMaxLength(64);
iRichTextEditor->SetExtent( KRichTextPoint, KRichTextSize );
需要注意的问题,在构造VIEW的时候,BaseConatructL()必须传进去一个定义的VIEW资源,要不切换不成功,搞了两天,想不明白.
相关文章推荐
- ubuntu从中文切换成英文的方法
- ipython 默认编码+切换中文目录
- 键盘切换中文
- ubuntu中快速将firefox英文界面切换成中文
- Easyui笔记4:实现表格内combobox数据的动态切换(getEditor的使用)
- Easyui笔记4:实现表格内combobox数据的动态切换(getEditor的使用)
- 在eclipse中安装properties插件PropertiesEditor及设置(附图),ASCII码转换成中文
- 把Ctrl+Space设置为中文与非中文输入法切换
- VM 安装red hat 5 解决中文显示乱码 和 切换中文输入法
- 从中文切换成英文的方法
- Windows系统Ctrl+Space切换中文输入法bug
- 完成输入框自动切换对应的中文或英文输入法
- Ubuntu 16.04 中文环境安装NetBeans无法切换fcitx问题!
- ubuntu的texteditor不能显示中文
- centos 切换中文环境
- ubuntu10.10中ibus切换到中文输入时图标异常
- 解决搜狗输入法输入英文,切换不到中文问题
- iOS 切换中文键盘时覆盖输入框
- 解决QT无法切换fcitx中文输入的时make编译出现的问题
- ubuntu中text editor不能显示中文 ubuntu14.04