×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    17

    Question [moved] How to change the text of pane at top of screen by E90 & N95 in landscape?

    Hi All!

    Our application works in several resolutions and at several phones of S60 3rd.
    If I start it at N95 or E90 in portrait mode, it fills out the full screen except soft keys area at the bottom of the screen.
    But if I switch the phone in landscape mode and start the application - a top pane with text occures. So it looks like this:
    on the top of screen is a pane with name of folder where the SW is installed (for example "Installations" at E90 or "Programs" at N95)
    on the bottom of screen is another pane which has same size as top-pane. Between those panes is area of our application.
    Both panes has softkeys.

    Is it possible to change the text inside of top pane in landscape mode?

    I've tried in the ApplNameAppUI:

    StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL );

    , also with different input parameters like R_AVKON_STATUS_PANE_LAYOUT_EMPTY - but no any changes.

    I've tried:

    Code:
    MEikAppUiFactory *appUiFactory = CEikonEnv::Static()->AppUiFactory();
    if (appUiFactory)
    {        
        CAknTitlePane* titlePane;
            
        titlePane = static_cast<CAknTitlePane*>(appUiFactory->StatusPane()->ControlL( TUid::Uid(EEikStatusPaneUidTitle ) ) );
        if (titlePane)
        {
            // here the code is executed, but I don't see any changes
            titlePane->SetTextL( _L("TestTitle1") );
            titlePane->DrawNow();
        }
    }
    and also can't see any pane- i.e. title- changing.
    What kind of pane is it?
    How can I control it?

    Wbr,
    Andrey

  2. #2
    Registered User
    Join Date
    Jun 2008
    Posts
    17

    Exclamation Re: How to change the text of pane at top of screen by E90 & N95 in landscape mode?

    The solution was found.

    The main problem was not to change the title dynamically, but to show the right one.
    I've found that during initiation of main view (window) of our application, was used pStatusPane->SetVisible(EFalse);
    Therefore the status pane was not displayed (at least symbols like: Clock, Signal Level, Battery Level, Application Name, etc.). On other side - our application didn't handle the redrawing of those placeholders and the system makes them transparent. So at those placeholders was visible the dimmed content of background application. In the title position it was the name of folder where the application shortcut is placed (installations or programms). After turing the value to ETrue:

    CEikStatusPane* pStatusPane = CEikonEnv::Static()->AppUiFactory()->StatusPane();
    if (pStatusPane) pStatusPane->MakeVisible (ETrue);

    the status pane is visible and we get the right application name in title bar and also useful symbols :-)

    The Issue may be closed.

    Good Luck!
    Andrey

Similar Threads

  1. SAXParser problem in E90 and N95
    By ksolehma in forum Mobile Java General
    Replies: 1
    Last Post: 2008-03-20, 09:53
  2. How to change system layouts to landscape mode on OS 9.2?
    By Mozart2007 in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-11-13, 08:57
  3. Navigation Pane text change...
    By VinodRaut in forum Symbian User Interface
    Replies: 9
    Last Post: 2007-10-19, 15:16
  4. SAXParser problem in E90 and N95
    By ksolehma in forum Series 40 & S60 Platform Feedback Archive
    Replies: 2
    Last Post: 2007-08-23, 15:38
  5. how to change Screen from Form to FullCanvas
    By ihadreampp in forum Mobile Java General
    Replies: 3
    Last Post: 2003-08-15, 08:50

Posting Permissions

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