Common Control to the all tabs in a view ?
Login to reply to this topic.
Tue, 2008-09-09 14:41
Joined: 2008-07-28
Forum posts: 9

hi,

Can we have one common control to all tabs ? My application needs to shown 5 different listBoxs in five tabs but uses a common editor window. I added the common editor to the CQikMutipleView as below, The problem I'm facing is the editor window is never getting focused. The focus stays only on listBox. Pls correct me If I did anything wrong in below code. Thanks.

iContainer = new (ELeave) CQikScrollableContainer();
AddControlLC(iContainer);
iContainer->ConstructL(EFalse);
CleanupStack::Pop(iContainer);
TResourceReader reader;
iEikonEnv->CreateResourceReaderLC(reader, R_RESULTS_VIEW_RICH_TEXT_EDITOR);
iContainer->AddControlLC(irted, EEdwinExStandardEdwin);
irted->ConstructFromResourceL(reader);
irted->SetExtent(TPoint(0,190),irted->Size());
irted->ActivateL();
CleanupStack::Pop(irted);
CleanupStack::PopAndDestroy();
irted->DrawNow();
irted->SetFocus(ETrue);


copyright 2003-2009 NewLC SARL