Hi.
I have 2 views and one container in each of them. Containers contains ListBox created dynamically. I'm switching between views in UI (class derived from CAknViewAppUi) like is it taking place in most of Symbian apps.
During switching I use DoActivateL and DoDeactivate functions in each of view classes. It looks like:
It runs ok but, every I switch to another view and back, the content is reseted and this is correct.Code:void CsymContainerView::DoActivateL(const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/) { SetupStatusPaneL(); if (iSymContainer == NULL) { iSymContainer = CreateContainerL(); iSymContainer->SetMopParent( this); AppUi()->AddToStackL( *this, iSymContainer); } else { //AppUi()->AddToStackL( *this, iSymContainer); } } void CsymContainerView::DoDeactivate() { CleanupStatusPane(); if (iSymContainer != NULL) { AppUi()->RemoveFromViewStack( *this, iSymContainer); delete iSymContainer; iSymContainer = NULL; } }
If I uncommnent from DoActivateL():and remove from DoDeactivate():Code://AppUi()->AddToStackL( *this, iSymContainer);
I can switch from first view to second but when I switch back to first I still see freezed content of second view's constainer. The menubar is switched correct, key events are handled proper even during debugging i know that I am working on correct container from first view but I see from second...Code:delete iSymContainer; iSymContainer = NULL;
What could be the problem? IMO it is connected to wrong refresh of ListBox implemented into view's containers.
Please give me any hint. Sory for my English :).
Hiero



