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. Thanks for all your past and future contributions.

How to fade the screen using Symbian C++

From Wiki
Jump to: navigation, search

This code example shows how to implement a fading effect in a Symbian application. The effect is similar to the transition effect of the Symbian Web Runtime APIs, for e.g. widget.prepareForTransition("fade");widget.performTransition();

Article Metadata
Code ExampleArticle
Created: giridharn (18 May 2007)
Last edited: hamishwillee (30 May 2013)

Code snippet

//For fading the screen 
//use this code in your DRAW method.
//////////here you can draw bmp/txt/et.c, which you want to show in faded
//here txt n everything looks normal.
TUint8 aBlackMap Black map fading parameter. Unfaded this is 0.
TUint8 aWhiteMap White map fading parameter. Unfaded this is 255


Aworking example is provided here:

This page was last modified on 30 May 2013, at 04:34.
32 page views in the last 30 days.