How to add text in Status Pane

Login to reply to this topic.
Thu, 2007-07-19 05:59
Joined: 2007-07-09
Forum posts: 2

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.

sample.JPG

AttachmentSize
sample.JPG7.03 KB

Thu, 2007-07-19 09:09
Joined: 2007-06-20
Forum posts: 93
Re: How to add text in Status Pane

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

Fri, 2007-07-20 02:41
Joined: 2007-07-09
Forum posts: 2
Re: How to add text in Status Pane

To: chandantheracer

Thanks for your guide. I'll try it.

Fri, 2007-07-20 03:43
Joined: 2007-04-29
Forum posts: 51
Re: How to add text in Status Pane

Hi,

If you work on UIQ platform, you can use MQikViewContext interface.
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.

Tue, 2007-09-18 08:01
Joined: 2007-09-12
Forum posts: 12
Re: How to add text in Status Pane

//------------------------------------------------------------------------------
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(statusPane->ControlL(
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(iNaviDecorator->DecoratedControl());
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

  • Login to reply to this topic.