Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Using the same background as built-in Symbian apps

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.



Article Metadata
CompatibilityArticle
Created: User:Technical writer 2 (13 Jun 2007)
Last edited: hamishwillee (14 Jun 2012)

Overview

Using the same background as built-in applications

Description

It is possible to reuse the background image from built-in applications (Notepad, Pinboard, etc.) in a 3rd party application. In order to do so, a background control context (CAknsBasicBackgroundControlContext) with the correct skin ID must be implemented in the view/control class.
For example, to set an editor (CEikEdwin) background similar to the Notepad application, use KAknsIIDQsnFrNotepad when creating the control context:
    #include <aknsconstants.h>  // for skin IDs
    // iBackgroundContext is a member variable
    iBackgroundContext = CAknsBasicBackgroundControlContext::NewL(
            KAknsIIDQsnFrNotepad,
            Rect(),
            EFalse );        
    // Set the background control context of an editor (CEikEdwin)
    iEditor->SetSkinBackgroundControlContextL( iBackgroundContext );
Similarly, to use the background from the Pinboard application, the skin ID KAknsIIDQsnBgAreaMainPinb can be used. For the default skin background the ID is KAknsIIDQsnBgAreaMain. See the aknsconstants.h header file for more options.

This page was last modified on 14 June 2012, at 07:40.
62 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×