Navigation pane label is disapear when the menu or query is showed

Login to reply to this topic.
Thu, 2007-09-06 12:31
Joined: 2006-03-03
Forum posts: 31

Hello,
I tried to solve this problem during 2 days, but I cant find the solution.
It is something strange...

I create a navigation label when create the view.

I can see the label , and all works fine. I stay in the main view but when the options menu is showed if I use cancel buttom the navigation label disappear and I can see a white rectangle in its place.

I can see this behavior also when I answer an AknQuery .

I thounght it was a refresh/redraw problem but I dont know where I have to redraw.

ConstructL:
iNavigationLabel=iAppUi->NaviPane()->CreateNavigationLabelL(_L(""));
iAppUi->NaviPane()->PushL( *iNavigationLabel );

destructor:
iAppUi->NaviPane()->Pop(iNavigationLabel );

Thank in advance.
best regards
mopa


Thu, 2007-09-06 13:08
Joined: 2006-03-03
Forum posts: 31
resolved!

I solved it!

I had a method to change the label text with navi pane and label DrawNow methods called. I removed this drawnow called and It works..
I dont know exactly why.

This was the code:

void updatetxt(TDesC &txt)
{
...
iAppUi->NaviPane()->DrawNow();
label->DrawNow();
}

thank you
best regards

  • Login to reply to this topic.