Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Embedded object

0 replies · 1,484 views · Started 21 January 2005

I try insert my embedded object in CEikRichTextEditor control:

iLabel = new (ELeave) CEikRichTextEditor();

// ...

CMyDocument *pDoc = static_cast<CMyDocument*>(AppEnv()->EikAppUi()->Document());
m_pDoor = CApaDoor::NewL(AppEnv()->FsSession(),*pDoc,TSize(12,12));

m_pDoor->SetFormatToGlassL();

TPictureHeader hP;

m_pDoor->GetSizeInTwips(hP.iSize);
hP.iPictureType = KUidPictureTypeDoor;
hP.iPicture = m_pDoor;

iLabel->RichText()->InsertL(0,hP);

ActivateL();

And I have trouble then calling ActivateL().
That`s maybe wrong?

P.S.: if replace m_pDoor->SetFormatToGlassL() to m_pDoor->SetFormatToTemporaryIconL() calling ActivateL() is successfully.