您的位置:首页 > 其它

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资源,要不切换不成功,搞了两天,想不明白.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: