Namespaces
Variants
Actions

Hiding Status panel

Jump to: navigation, search
Article Metadata

Article
Created: symbianyucca (30 Mar 2007)
Last edited: hamishwillee (23 Jul 2012)
Reviewer Approved    Thumbs up icon sm.jpg

With some application it is useful to take the whole area of the status pane to be used as part of the application area. In these cases the status pane can be easily hidden using following code:

if(StatusPane()->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_EMPTY)
{
StatusPane()->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_EMPTY);
}

Note that when changing the status pane layout you should always check first if the status pane is already using the layout.

After calling this line the Application user interfaces ClientRect() method will return the area covering all other areas expect the command button area. To switch back to the normal status pane you can use the following code:

if(StatusPane()->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_USUAL)
{
StatusPane()->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL);
}

If you want to hide the status pane before launching the applications you can define the empty layout to be used as default by defining the default status pane in your resource file as follows:

RESOURCE EIK_APP_INFO
{
....
status_pane=R_AVKON_STATUS_PANE_LAYOUT_EMPTY;
...
}
This page was last modified on 23 July 2012, at 11:00.
139 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved