WEB开发网
开发学院手机开发Symbian 开发 Symbian 如何创建编辑框 阅读

Symbian 如何创建编辑框

 2010-04-20 15:55:00 来源:WEB开发网   
核心提示:// ]]] end generated region [Generated Contents]return iRichTextEditor->OfferKeyEventL(aKeyEvent,aType);if ( iFocusControl != NULL&& iFocusControl->OfferK

// ]]] end generated region [Generated Contents]

return iRichTextEditor->OfferKeyEventL(aKeyEvent,aType);

if ( iFocusControl != NULL

&& iFocusControl->OfferKeyEventL( aKeyEvent, aType ) == EKeyWasConsumed )

{

return EKeyWasConsumed;

}

return CCoeControl::OfferKeyEventL( aKeyEvent, aType );

}

void CTestEditContainer::InitializeControlsL()

{

CreateEditor();

}

void CTestEditContainer::CreateEditor()

{

iRichTextEditor = new (ELeave) CEikRichTextEditor;

iRichTextEditor->SetContainerWindowL (*this);

iRichTextEditor->SetMopParent (this);

iRichTextEditor->ConstructL (this,0,0,EEikEdwinNoHorizScrolling);

iRichTextEditor->SetBackgroundColorL (KRgbWhite);

iRichTextEditor->CreateScrollBarFrameL ();

iRichTextEditor->ScrollBarFrame()->SetScrollBarVisibilityL (CEikScrollBarFrame::EOff,

CEikScrollBarFrame::EAuto);

iRichTextEditor->UpdateScrollBarsL ();

iRichTextEditor->ActivateL ();

iRichTextEditor->SetFocus(ETrue);

}

上一页  1 2 

Tags:Symbian 如何 创建

编辑录入:coldstar [复制链接] [打 印]
赞助商链接