This page was last modified 15:40, 15 October 2007.
Changing Title Pane Text
From Forum Nokia Wiki
The code below shows how to change the Title Pane Text.
#include <akntitle.h> // Link against: avkon.lib TUid titlePaneUid; titlePaneUid.iUid = EEikStatusPaneUidTitle; // calling CAknAppUi::StatusPane() which returns CEikStatusPane* // CEikStatusPane* statusPane = StatusPane(); CEikStatusPaneBase::TPaneCapabilities subPane = statusPane->PaneCapabilities(titlePaneUid); // if title pane is accessible // if ( subPane.IsPresent() && subPane.IsAppOwned() ) { CAknTitlePane* titlePane = (CAknTitlePane*) statusPane->ControlL(titlePaneUid); // read the title text from the resource file HBufC* titleText = StringLoader::LoadLC(R_TITLE_TEXT); // set the title pane's text titlePane->SetTextL(*titleText); CleanupStack::PopAndDestroy(titleText); }
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| menupane problem | everyourgokul | General Symbian C++ | 7 | 2007-10-09 11:04 |
| 如何解决statusPane的Title错误更新? | applezzql | Symbian | 10 | 2007-10-16 03:40 |
| is it possible to add icon to indicator pane? | topwingo | General Symbian C++ | 1 | 2007-01-19 09:43 |
| CreateAndSendMessage embeded editor titlepane | fierroj | General Symbian C++ | 0 | 2007-11-06 04:24 |
| How to interpret "\r\n" in CEikEdwin? | Casper1314 | General Symbian C++ | 2 | 2007-06-24 21:14 |
