×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    178

    Unhappy Theme gets messed up by CAknsBasicBackgroundControlContext

    I'm using this kind of solution:
    http://wiki.forum.nokia.com/index.ph...s_in_container

    But in addition I also change the specific portion of skin to use it as a background to two richtexteditors:

    Code:
        if ( AknsUtils::SkinInstance() )
        	{
        	GFLOG1("CChatUiContainer::SetBackgroundL - SetLocalItemDefL");
        	
        	HBufC* iconPath( _L("c:\\myicons.mif") );
            CleanupStack::PushL( iconPath );
    
        	AknsUtils::SkinInstance()->SetLocalItemDefL( 
        	    AknsUtils::CreateMaskedBitmapItemDefL(
        		    KAknsIIDQsnBgAreaMain,
        		    *iconPath,
        		    aBitmapId,
        		    aMaskId ) );
            CleanupStack::PopAndDestroy( iconPath );
        	}
    But I got very interesting problem, whenever I have my application running, put it to background and go change the Profile Theme from phone settings and go back to my application, it decides it's no good and changes the phone theme to the default theme. What could be the problem? How to fix it?

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

    Re: Theme gets messed up by CAknsBasicBackgroundControlContext

    you could always monitor the theme change event and then do the local settings again when the theme changes.

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    178

    Re: Theme gets messed up by CAknsBasicBackgroundControlContext

    What's the observer for detecting theme changes?

    I think the problem is with missing this line from my container's destructor:

    Code:
    AknsUtils::SkinInstance()->RemoveLocalItemDefs();
    EDIT:

    Nevermind, found the observer, though dunnow if it helps.
    http://wiki.forum.nokia.com/index.ph...nded_Skins_API
    Last edited by ManuMies; 2008-11-06 at 12:16.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8

    Re: Theme gets messed up by CAknsBasicBackgroundControlContext

    m facing same problem.
    I used AknsUtils::SkinInstance()->RemoveLocalItemDefs(); in container destructor.
    But when I used this theme corrupted dialog box got removed. But it shows default CBA of theme instead of Changed CBA which I used.
    Please help me its urgent
    Thanks

Similar Threads

  1. Theme Template for Nokia E61?
    By czoth in forum Streaming and Video
    Replies: 22
    Last Post: 2007-03-01, 13:22
  2. Theme Studio 3.0 Problems
    By Caesar69 in forum Streaming and Video
    Replies: 0
    Last Post: 2006-02-18, 00:55
  3. Theme Studio 3 and n90 / n70 Problems
    By Ezz666 in forum Streaming and Video
    Replies: 0
    Last Post: 2006-02-04, 13:18

Posting Permissions

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