Discussion Board

Results 1 to 5 of 5
  1. #1
    I am using the Basic Container (CCoeControl) view (from the Carbide GUI wizard) with some icons on it. How do you make the container's background transparent so that the phone's skin is visible in the background?
    As far as I can see the background is always set to a color.
    Last edited by herman_du plessis; 2008-08-30 at 15:41.

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Search for skin in the Wiki. Default CCoeControl::Draw does absolutely nothing, what you currently see is most probably the result of a CBitmapContext::Clear.

  3. #3
    Thanks for the response.

    In the Container class generated by the Carbide wizard the Draw method has the following code.

    Code:
    // [[[ begin generated region: do not modify [Generated Contents]
    CWindowGc& gc = SystemGc();
    gc.Clear( aRect );
    // ]]] end generated region [Generated Contents]
    If i remove the code, it is transparent but all the controls don't get updated correctly when e.g. text change.

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Try the other part, and search for skin in the Wiki.

  5. #5
    I looked at the Wiki. I investigated the posting
    "Drawing skins in container". It worked 100% but with some issues.

    * First, the code does not compile as is. You must change the include "#include <AknsUtils.h>" to "#include <AknUtils.h>".
    * The code crash when "SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());" is executed. I just replaced it with "SetRect( aRect );".

    Thanks

Similar Threads

  1. transparent svg icons
    By TPMaKom in forum Symbian C++
    Replies: 7
    Last Post: 2009-06-01, 10:19
  2. Replies: 2
    Last Post: 2009-01-22, 06:03
  3. creating transparent images at runtime
    By gpinkett in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-05-07, 11:22
  4. Transparent icons in program manager on 7650
    By Arngrim in forum Mobile Java General
    Replies: 0
    Last Post: 2002-12-09, 21:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved