×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Changing the skin of the status pane on Symbian

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Add ArticleNeedsUpdate template)
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update - Fix metadata)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Symbian C++]][[Category:UI]][[Category:Technical Solution]][[Category:S60 3rd Edition, Feature Pack 2]][[Category:Themes]]
+
{{Archived|timestamp=20120313110325|user=roy.debjit| }}
__NOTOC__ __NOEDITSECTION__
+
[[Category:Symbian C++]][[Category:UI]][[Category:S60 3rd Edition FP2]][[Category:Themes]]
{{KBTS}}
+
 
+
 
{{ArticleNeedsUpdate|timestamp=20111005002721|user=[[User:Hamishwillee|<br />----]]|As per article comments there are devices this snippet does not work for. Workarounds required. Would also be useful if ArticleMetaData were update.}}
 
{{ArticleNeedsUpdate|timestamp=20111005002721|user=[[User:Hamishwillee|<br />----]]|As per article comments there are devices this snippet does not work for. Workarounds required. Would also be useful if ArticleMetaData were update.}}
{{ArticleMetaData
+
{{ArticleMetaData <!-- v1.2 -->
|id=TSS001174
+
|platform=S60 3rd Edition, S60 3rd Edition, FP1
+
|devices=Nokia 6210, Nokia N78
+
|creationdate= November 17, 2008
+
|keywords=KAknsIIDQsnBgAreaStatus, KAknsIIDQsnBgAreaStaconRt
+
 
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
|sdk=<!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
+
|devices= Nokia 6210, Nokia N78
|devicecompatability=<!-- Compatible devices (e.g.: All* (must have GPS) ) -->
+
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
|signing=<!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
+
|platform= S60 3rd Edition, S60 3rd Edition, FP1
|capabilities=<!-- Capabilities required (e.g. Location, NetworkServices.) -->
+
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
|author=[[User:Technical writer 1]]
+
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= KAknsIIDQsnBgAreaStatus, KAknsIIDQsnBgAreaStaconRt
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by= <!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate= 20081117
 +
|author= [[User:Technical writer 1]]
 +
<!-- The following are not in current metadata -->
 +
|id= TSS001174
 
}}
 
}}
 +
 
 
== Description ==
 
== Description ==
  
Line 46: Line 56:
 
Skinning in S60 3rd Edition, FP1:
 
Skinning in S60 3rd Edition, FP1:
  
[[Image:Skinning in 3rd Ed FP1.jpg]]  
+
[[File:Skinning in 3rd Ed FP1.jpg]]  
  
 
Skinning in S60 3rd Edition, FP2:
 
Skinning in S60 3rd Edition, FP2:
  
[[Image:Skinning in 3rd Ed FP2.jpg]]
+
[[File:Skinning in 3rd Ed FP2.jpg]]
 +
<!-- Translation --> [[zh-hans:Archived:改变状态栏的皮肤]]

Latest revision as of 09:55, 7 September 2012

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}}.

Needs-update.pngThis article needs to be updated: If you found this article useful, please fix the problems below then delete the {{ArticleNeedsUpdate}} template from the article to remove this warning.

Reasons: hamishwillee (05 Oct 2011)
As per article comments there are devices this snippet does not work for. Workarounds required. Would also be useful if ArticleMetaData were update.

Article Metadata
Tested with
Devices(s): Nokia 6210, Nokia N78
Compatibility
Platform(s): S60 3rd Edition, S60 3rd Edition, FP1
S60 3rd Edition FP2
Article
Keywords: KAknsIIDQsnBgAreaStatus, KAknsIIDQsnBgAreaStaconRt
Created: User:Technical writer 1 (17 Nov 2008)
Last edited: hamishwillee (07 Sep 2012)

[edit] Description

Changing the status pane skin background, including the panes for signal and battery strength, was not possible prior to S60 3rd Edition, Feature Pack 2. Previously these subpanes were drawn on the server side but from S60 3rd Edition, FP2 onwards the entire status pane is owned by the application, making it possible to provide the correct theme also for the battery and signal strength subpanes.

[edit] Solution

 MAknsSkinInstance* pSkin = AknsUtils::SkinInstance();
const TAknsItemID elementID = KAknsIIDQsnBgAreaStatus;
 
// KAknsIIDQsnBgAreaStaconRt as TAknsItemID can be used to skin
// status pane in landscape mode
 
// Load desired bitmap for background.
CAknsItemDef* pMenuSkinItemCBA
= AknsUtils::CreateBitmapItemDefL( elementID,
bitmapFile,
EMbmUntitled );
if ( pMenuSkinItemCBA )
{
TRAPD( err_skin, pSkin->SetLocalItemDefL( pMenuSkinItemCBA) );
}

The above code can be used to change the skin of the status pane (excluding the battery and signal strength panes) in devices prior to S60 3rd Edition, FP2.

Skinning in S60 3rd Edition, FP1:

Skinning in 3rd Ed FP1.jpg

Skinning in S60 3rd Edition, FP2:

Skinning in 3rd Ed FP2.jpg

This page was last modified on 7 September 2012, at 09:55.
91 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.

×