How to add text in Status Pane
| Thu, 2007-07-19 05:59 | |||||
|
Hi all, I'm a newbie in Symbian. I've just started to program on Symbian some days ago. Now i have a problem, that's i want to display a text in the band of Status Pane (please see the picture below). How can i do that. Can you give me some clues to overcome this problem? Thanks.
|
|||||






Forum posts: 93
hi,
Search in SDK Status Pane.......
U find a Status Pane example for ur Requirement....
U see section 4.4.4
Displaying a text string
A text string can be displayed in the Navigation pane. To display a text string, use a label. First set the text string in a label, then set the label in the Navigation pane.
Thanks & Regards,
C Singh
Forum posts: 2
To: chandantheracer
Thanks for your guide. I'll try it.
Forum posts: 51
Hi,
If you work on UIQ platform, you can use
MQikViewContextinterface.In view class, call the below function to get the interface
MQikViewContext* viewContext = ViewContext();I have a little sugget to make, when you pop up a question, you'd better describe your working environment.
good luck.
Forum posts: 12
//------------------------------------------------------------------------------(statusPane->ControlL((iNaviDecorator->DecoratedControl());
CAknNavigationControlContainer* iNaviPane = 0;
CAknNavigationDecorator* iNaviDecorator = 0;
//Get the reference of the status pane
CEikStatusPane *statusPane = iEikonEnv->AppUiFactory()->StatusPane();
if ( statusPane )
{
//Get the reference of the navi pane
iNaviPane=static_cast
TUid::Uid(EEikStatusPaneUidNavi)) );
//Create a Navi decorator object
iNaviDecorator= iNaviPane->CreateEditorIndicatorContainerL();
//Get the reference of the indicator container inside the NaviDecorator
CAknIndicatorContainer* indiContainer =
static_cast
if ( indiContainer && CEikStatusPaneBase::Current() )
{
TBuf<32> msgSize;
msgSize.Append(_L("Test")); // Text to be displayed
indiContainer->SetIndicatorValueL(
TUid::Uid( EAknNaviPaneEditorIndicatorMessageLength ), msgSize );
indiContainer->SetIndicatorState(
TUid::Uid( EAknNaviPaneEditorIndicatorMessageLength ),
EAknIndicatorStateOn);
}
//Push the object onto the navi pane.
iNaviPane->PushL( *iNaviDecorator );
Copy from wiki.forum.nokia.com