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

init tabs dinamically

0 replies · 1,404 views · Started 06 July 2004

Hello
I want to initiate tabs dinamically ,
in order to add several tabs to the same CEikDialog with the option to choose between tabs without erasing the data which is set in the other dialog's controls.
here is my basic code of adding one tab to a dialog inside a group (and in addition an EDWIN from the RSS file ...).
the compilation goes well and the dialog is shown but without any tab on it.
please advise what I should add or change (I also tried to use the MakeVisible and DrawNow methods which didn't help) ,
Thanks a lot

void CMyAppMyDialog::PreLayoutDynInitL()
{
tabGroup = new ( ELeave ) CQikTabGroup;
tabGroup->SetContainerWindowL(*this);
tabGroup->ConstructL(CQikTabGroup::EAllTabsTheSameWidth);
tab1 = new ( ELeave ) CQikTab;
_LIT(TAB1,"abc"😉;
tab1->SetText(TAB1);
tab1->SetContainer(tabGroup);
tabGroup->AddTabL(tab1);
tabGroup->SetCurrentTabL(0);
//here I will add more tabs ...
myEdwin=static_cast<CEikEdwin*>(Control(EMyAppControlIdMyEdwin));
_LIT(K1,"None"😉;
myEdwin->SetTextL(&K1);
}