Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Set text on navigation pane
This bit of code can be used to edit your View's Navi Pane Text, even if it was made with the Carbide designer. It should be placed in the *View file and does NOT need ANY KIND OF modifications to make it fit your Navi Pane Text (aka there is no need to paste in the Navi Panes name anywhere).
There are used following header files:
CEikStatusPane* sp = iEikonEnv->AppUiFactory()->StatusPane();
iNaviContainer = (CAknNavigationControlContainer *)sp->ControlL(TUid::Uid(EEikStatusPaneUidNavi));
iNaviLabelDecorator = iNaviContainer->CreateNavigationLabelL();
Notes when using this with Carbide
This is unreliable when used in conjunction with Carbide-Generated UI in two facets: x) the text pops up on all forms x) screen rotation does all kinds of weird stuff