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.
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 :)
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.
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 :)