Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
nirmalsat
Posts: 207
Registered: ‎07-31-2009
My Device: Not Specified

Re: Adding Background image to the Manger

 

How about now?


screenimage.jpg

------------------------------------------------------------------------------------------------------------------------
Click the Kudos! badge on left side of the message , if you are happy with a solution given by a user. When you do so, you are saying thanks to its author.
Mark a reply as a solution , if you think your question has been answered.
To mark a message as a solution: Click "Accept as solution" icon on the reply.
Please use plain text.
Developer
bikas
Posts: 984
Registered: ‎02-10-2009
My Device: Not Specified

Re: Adding Background image to the Manger

Same again. :smileysad:

 

Regards

Bikas

 

Please use plain text.
Developer
nirmalsat
Posts: 207
Registered: ‎07-31-2009
My Device: Not Specified

Re: Adding Background image to the Manger

I ve sent u a private message with the link to the photo.. As u can see , that is the screen structure.. The red line is upto which the actual background image comes..

 

------------------------------------------------------------------------------------------------------------------------
Click the Kudos! badge on left side of the message , if you are happy with a solution given by a user. When you do so, you are saying thanks to its author.
Mark a reply as a solution , if you think your question has been answered.
To mark a message as a solution: Click "Accept as solution" icon on the reply.
Please use plain text.
Developer
SamuelD
Posts: 166
Registered: ‎01-14-2009
My Device: Curve 8330

Re: Adding Background image to the Manger

Hello,

have you tried not to call the super.paintBackground method as it will fill the manager with white.

Thank you, have a nice day.

--
Samuel D.
Please use plain text.
Developer
nirmalsat
Posts: 207
Registered: ‎07-31-2009
My Device: Not Specified

Re: Adding Background image to the Manger

super.paintbackground () is called with an argument graphics which contains the parameters that mention how the image needs to be displayed . And this call is present only in the mainVeticalManager.. And again just to be clear , the background image does get displayed.Only thing is that it only comes in the mainVerticalManager and not in other managers.

------------------------------------------------------------------------------------------------------------------------
Click the Kudos! badge on left side of the message , if you are happy with a solution given by a user. When you do so, you are saying thanks to its author.
Mark a reply as a solution , if you think your question has been answered.
To mark a message as a solution: Click "Accept as solution" icon on the reply.
Please use plain text.
Developer
bikas
Posts: 984
Registered: ‎02-10-2009
My Device: Not Specified
Please use plain text.
Developer
aditya_BB
Posts: 26
Registered: ‎10-21-2009
My Device: Not Specified

Re: Adding Background image to the Manger

[ Edited ]

TRY this.

 

In MyScreen extends MainScreen

 

MyScreen(ZonamController controller)
    {
        super(Manager.NO_VERTICAL_SCROLLBAR|Manager.NO_VERTICAL_SCROLL);

   }

 

public void paint(Graphics gr)
    {
        gr.drawBitmap(0, 0, gr.getScreenWidth(), gr.getScreenHeight(), BackgrndImg(), 0, 0);
        subpaint(gr);
    }

 

 

P.S. I did not test this.

 

 

Please use plain text.
Developer
nirmalsat
Posts: 207
Registered: ‎07-31-2009
My Device: Not Specified

Re: Adding Background image to the Manger

@bikas - I checked those links. The explanation and code samples posted there are similar to the ones given by u in the previous posts here.. And am sorry to say it still doesnt work.. 

 

@ aditya_BB - Ur code doesnt work either.. 

 

Am almost at the point of giving up.. I could do without a background and am pretty sure my application would work fine.. :smileysad:

------------------------------------------------------------------------------------------------------------------------
Click the Kudos! badge on left side of the message , if you are happy with a solution given by a user. When you do so, you are saying thanks to its author.
Mark a reply as a solution , if you think your question has been answered.
To mark a message as a solution: Click "Accept as solution" icon on the reply.
Please use plain text.
Developer
aditya_BB
Posts: 26
Registered: ‎10-21-2009
My Device: Not Specified

Re: Adding Background image to the Manger

I tried similar UI Pattern with Lables.

 

I can scroll without any prblm.

 

---

Aditya.

Please use plain text.
Developer
nirmalsat
Posts: 207
Registered: ‎07-31-2009
My Device: Not Specified

Re: Adding Background image to the Manger

I have actually tried removing all managers but the mainVerticalManager and still the backgound image only comes up til a certain point. I cant seem to figure out what could be the problem.. Could the size of the image be of concern?

------------------------------------------------------------------------------------------------------------------------
Click the Kudos! badge on left side of the message , if you are happy with a solution given by a user. When you do so, you are saying thanks to its author.
Mark a reply as a solution , if you think your question has been answered.
To mark a message as a solution: Click "Accept as solution" icon on the reply.
Please use plain text.