Thursday, January 22, 2015

HOW TO CHANGE STATUS PANE TEXT

Description:
This label explains about how to change the default status pane (generally the application name) text provided by the s60 UI framework.
Usage:


CEikStatusPane* sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane();
if (sp)
{
 CAknTitlePane* TitlePane= STATIC_CAST(CAknTitlePane*,
 sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle)));
 if (TitlePane)
 {
  TitlePane->SetTextL(aText); //Pass the text to be displayed in aText.
 }
}

Note:
To get back the default staus pane you can use the following API.
TitlePane->SetTextToDefaultL();

0 comments:

Post a Comment