×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jun 2004
    Posts
    135

    how to apply a certain 3rd edition skin only to a certain application?

    Hi,

    I want to apply an already created Symbian 3rd edition theme to my application only. How can I do that. My application already supports skinning as I use some code like:

    Code:
    ................
    BaseConstructL( EAknEnableSkin );
    ................
    
    iBgContext = CAknsBasicBackgroundControlContext::NewL( KAknsIIDQsnBgAreaMain, aRect, ETrue );
    .......................
        MAknsSkinInstance* skin = AknsUtils::SkinInstance();
        MAknsControlContext* cc = AknsDrawUtils::ControlContext( this );
        
        AknsDrawUtils::Background( skin, cc, this, gc, aRect );
    ............................
    	CCoeControl::HandleResourceChange( aType );
    	
        if ( aType == KEikDynamicLayoutVariantSwitch )
        {
            TRect mainPaneRect;
            AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, mainPaneRect );
            SetRect( mainPaneRect );
                    
            if ( iBgContext )
            {
                iBgContext->SetRect( mainPaneRect );
            }
            
            DrawNow();
        }
    ............................................
        if ( aId.iUid == MAknsControlContext::ETypeId ) 
        { 
            return MAknsControlContext::SupplyMopObject( aId, iBgContext );
        }
        return CCoeControl::MopSupplyObject( aId );
    ...........................
    	delete iBgContext;
    in my containers.


    So I suppose that I need to use MAknsSkinInstance methods to load a specific theme when the application is started.

    How to do that?

    thanks.

  2. #2
    Registered User
    Join Date
    May 2007
    Location
    Helsinki
    Posts
    15

    Re: how to apply a certain 3rd edition skin only to a certain application?

    Did you find a solution how to do this?

  3. #3
    Regular Contributor
    Join Date
    Sep 2006
    Location
    Helsinki
    Posts
    109

    Re: how to apply a certain 3rd edition skin only to a certain application?

    To my knowledge, this is not possible. Theme is a system-wide concept and it can't be different per application basis. Even if you would implement some own theme system for your application, everything that's drawn by system (menus, cbas, status pane, queries) would be drawn by current system theme
    Teemu Kurppa
    Blog: http://dirtyaura.org/blog

Similar Threads

  1. Python for S60 3rd Edition
    By jplauril in forum Symbian
    Replies: 82
    Last Post: 2008-06-04, 04:47
  2. Replies: 7
    Last Post: 2007-11-30, 14:49
  3. CodeWarrior 3.1.1 does not create SIS-file for S60 3rd edition SDK
    By petpieta in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2007-09-11, 09:42
  4. S60 2nd OR 3rd edition for new software development
    By patil_ruturaj in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-06-30, 09:30
  5. S60 3rd Edition Device and Heap limitation!
    By khurshed79 in forum Symbian
    Replies: 6
    Last Post: 2006-06-29, 10:51

Posting Permissions

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