Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User capricorn's Avatar
    Join Date
    Oct 2006
    Posts
    25
    i want to know how to set permanently bitmaps at Status pane and soft key pane without going individually into views and then paste bitmaps in each view

    is there any method by which we can set bitmaps in all views by declaring and defining at one place.

  2. #2
    Nokia Developer Champion amitkankani's Avatar
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572
    You need not have to paste your bitmaps in each view separately.

    May be this solution can help you:

    1. Create the bitmap only once during AppUi::ConstructL (this bitmap should be a pointer and member variable of the appui class)
    2. When creating the views pass this bitmap pointer and store in the view.
    3. Now without having to recreate the bitmap, use the pointer to use the same bitmap to display

    Hope this is clear and it helps
    Amit Kankani
    Nokia Developer Champion

  3. #3
    Registered User capricorn's Avatar
    Join Date
    Oct 2006
    Posts
    25
    thanks for the help but i want to know how to perform your second step
    i.e

    (When creating the views) its ok upto here

    but how to pass this bitmap pointer and store in the view.

  4. #4
    Nokia Developer Champion amitkankani's Avatar
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572
    Modify the constructor of the view to accept another parameter (it could be bitmap*). If u want to share more things, u can put it within a structure and pass a pointer of the structure to view.

    Note, this bitmap is owned by appui , but its pointer passed to views via constructors and a pointer variable in view stores the pointer and uses it when ever it needs it.

    Hope its clear now
    Amit Kankani
    Nokia Developer Champion

Similar Threads

  1. [moved] Theme Studio Error
    By TalJ in forum Themes/Carbide.ui
    Replies: 2
    Last Post: 2009-09-06, 03:39
  2. problem when importing from carbide c++ to vs 2003!
    By misfit.physics in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2008-02-19, 09:45
  3. How can I reverse the color in the screen?
    By sanmu163 in forum Symbian User Interface
    Replies: 11
    Last Post: 2006-08-18, 08:12
  4. Help !about .mbm的形成
    By wangguoshui in forum Symbian
    Replies: 4
    Last Post: 2004-12-23, 03:37
  5. Display 24bit bitmap in 3650, ugly color...
    By yfho in forum Symbian C++
    Replies: 2
    Last Post: 2003-08-07, 12:58

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