×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    May 2006
    Posts
    123

    Thumbs up Display Text On Status Pane..

    Hi All,
    How to Display Text on Status Pane when it is in R_AVKON_STATUS_PANE_LAYOUT_SMALL.

    Used below code:
    CEikStatusPane* sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane();
    // Switch layout
    sp->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_SMALL );

    // After switching layout check if title pane is in current layout.
    TBool isTitlepaneInLayout = sp->PaneCapabilities( TUid::Uid( EEikStatusPaneUidTitle ) ).IsInCurrentLayout();

    // If title pane is in the curent layout, change title text.
    if ( isTitlepaneInLayout )
    {
    // Fetch pointer to the title pane control
    CAknTitlePane* iTitlePane = (CAknTitlePane*)sp->ControlL( TUid::Uid(EEikStatusPaneUidTitle));
    iTitlePane->SetTextL( _L("New Title") );
    }

    But Cant see any text on status pane bar.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Display Text On Status Pane..

    Consider debugging the code, then you will see if it even reaches the SetTextL.

  3. #3
    Regular Contributor
    Join Date
    May 2006
    Posts
    123

    Thumbs up Re: Display Text On Status Pane..

    Hi,
    I did debug ,it reached SetTextL function.But I cant see any text on status pane.

  4. #4
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    56

    Re: Display Text On Status Pane..

    Hi,

    Try this code and add eikspane.h with lib = eikcoctl.lib

    CEikStatusPane* sp = iEikonEnv->AppUiFactory()->StatusPane();
    iTitlePane = ( CAknTitlePane*)
    sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle ));

    TBuf<20> txt;
    txt.Copy(_L("New Title"));
    iTitlePane->SetTextL(txt);

    Regards
    MasterMindSolutions

Similar Threads

  1. Who handles touch event on status pane
    By smanikandan14 in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-07-27, 10:29
  2. Small status pane causes background image errors
    By James McMurray in forum Symbian
    Replies: 3
    Last Post: 2009-02-10, 19:27
  3. Status pane text of Messaging application.
    By shafali gupta in forum Symbian
    Replies: 0
    Last Post: 2008-10-31, 09:19
  4. status pane in E61 screen (320x240 ) s603rd
    By francobellu in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-06-23, 23:16
  5. Display Text in Navigation Pane
    By valentin_da_itiv in forum Symbian User Interface
    Replies: 8
    Last Post: 2004-07-23, 04:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×