Archived:Using the same background as built-in Symbian apps
Article Metadata
Compatibility
S60 3rd Edition
Article
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.


Bdrubel - KeyPress in CEikEdwin dose not work Properly
This above solution is more helpful. Actually I spend so many hours in this section. This article help me to make transparent CEikEdwin. But unfortunately I got a new problem. when I try to write something in my CEikEdwin it always overwrite one to others. I always call DrawDeferred after every key pressing but it dose not working.
Please help me...
Thanks for your great helpbdrubel 12:34, 14 August 2011 (EEST)
Hamishwillee - Discussion forums
This sort of question is best raised on the forums: http://www.developer.nokia.com/Community/Discussion/ . If you come up with a helpful extension to this article to cover your use case, please feel free to add it!hamishwillee 04:44, 26 August 2011 (EEST)