×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    4

    How to change background(skin) for status pane?

    Hi,

    What I want to do is to change a default background of status pane and main area of my app(change background images predefined by active theme).

    Although there are at least 2 different ways to change background for main area, I'm unable to change it for status pane. The logical way would be to override KAknsIIDQsnBgAreaStatus image of active skin:

    _LIT(KImageFile,"\\resource\\apps\\mpcch.mbm");
    MAknsSkinInstance* skin = knsUtils::SkinInstance();
    CAknsItemDef* bgItemDef;
    bgItemDef = AknsUtils::CreateBitmapItemDefL(KAknsIIDQsnBgAreaStatus, KImageFile, EMbmMpcchstatuspanebg);
    skin->SetLocalItemDefL(bgItemDef);

    This code exits with System error (-6)

    And I read in Skin API manual that this way is probably not supported..

    I don't find a way to override locally any of default skin elements.

    Is it possible some how?

    Is there some different way to alter a background of status pane?

    Thanks for any comments,
    Marius

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

    Re: How to change background(skin) for status pane?

    Skin is a global resource, it cannot be altered locally. A thing you can try is using CCoeControl::SetBackground on the individual controls, however I do not know if it is easy or not, neither if it works or not.

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to change background(skin) for status pane?

    Actually the SetLocalItemDefL can be used for setting the local skin. Did only try it couple of years back and could change some parts but status panel did not work on my case. Anyway, you could do searching for old posts you propably would find some examples of its usage.

Similar Threads

  1. status pane in E61 screen (320x240 ) s603rd
    By francobellu in forum Symbian
    Replies: 2
    Last Post: 2008-07-10, 12:48
  2. change status pane ..???
    By dakoz in forum Symbian
    Replies: 1
    Last Post: 2005-12-29, 05:48
  3. Replies: 3
    Last Post: 2004-09-17, 06:00
  4. Replies: 1
    Last Post: 2003-10-27, 03:47
  5. how to change the status pane display dynamically
    By varshajohn in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-11-04, 05:02

Posting Permissions

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