Symbian 如何创建编辑框
2010-04-20 15:55:00 来源:WEB开发网// ]]] 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);
}
更多精彩
赞助商链接