hi there people ?
here is the thing ..
i have a listbox , i want when i click on the comand " view" the diplay will switch from a listbox to CEikLabel to display a text ..??
i treid to do this but the CEikLabel is not displayed
Code:void CTouristGuideContainer::ConstructL(const TRect& aRect) { CreateWindowL(); // create listbox iListBox = new (ELeave) CAknSingleStyleListBox; iListBox->ConstructL(this, 0); /*iListBox->SetContainerWindowL(*this); iListBox->SetRect(aRect.Size());*/ iListBoxRows = new (ELeave) CDesCArrayFlat( KGranularityOfArray ); iId = new (ELeave) CDesCArrayFlat( KGranularityOfArray ); iListBox->Model()->SetItemTextArray( iListBoxRows ); iListBox->Model()->SetOwnershipType(ELbmDoesNotOwnItemArray); iListBox->ActivateL(); iListBox->CreateScrollBarFrameL(ETrue); iListBox->ScrollBarFrame() ->SetScrollBarVisibilityL(CEikScrollBarFrame::EOn, CEikScrollBarFrame::EAuto); iListBox->SetCurrentItemIndex(0); // creating a ticker CEikStatusPane* sp = iEikonEnv->AppUiFactory()->StatusPane(); CAknNavigationControlContainer* np = (CAknNavigationControlContainer *)sp->ControlL(TUid::Uid(EEikStatusPaneUidNavi)); np = (CAknNavigationControlContainer *)sp->ControlL(TUid::Uid(EEikStatusPaneUidNavi)); iNaviDecorator = np->CreateNavigationLabelL(_L("")); np->PushL(*iNaviDecorator); GetPtrToNaviPane(); iCounter = 1; iNaviLabel = CRichText::NewL(iEikonEnv->SystemParaFormatLayerL(), iEikonEnv->SystemCharFormatLayerL()); //editor iToDoLabel = new (ELeave) CEikLabel; iToDoLabel->SetContainerWindowL( *this ); screen=1; // http engine iClient = CClientEngine::NewL(*this); SetRect(aRect); wait=0; //Start(); restoreall=EFalse; backupall=EFalse; ActivateL(); } void CTouristGuideContainer::GetDetails() { screen=3; TBuf<256> data1; data1.Copy(_L("details")); iToDoLabel->SetTextL(data1); SizeChanged(); } void CTouristGuideContainer::SizeChanged() { if (screen==3) { iToDoLabel->SetExtent( TPoint(10,100), iToDoLabel->MinimumSize() ); } else { iListBox->SetContainerWindowL(*this); iListBox->SetRect(Rect()); } }



