View Full Version : Embedded object


Serhio
21-01-2005, 08:48 AM
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.