×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    25

    how to set bitmap permanently

    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
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: how to set bitmap permanently

    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
    Join Date
    Oct 2006
    Posts
    25

    Re: how to set bitmap permanently

    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
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: how to set bitmap permanently

    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. 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
  2. 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
  3. 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
  •  
×