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
Contributor
Posts: 21
Registered: ‎03-09-2012
My Device: 9930
My Carrier: Maroc Telecom

Help, Field Foreground Field

Hi all, 

I have to make a screen that contain two field,  text  foreground bitmapfield like the image exemple

 

Sans-titre-1.png

 

pls HELP

 

 

Contributor
Posts: 21
Registered: ‎03-09-2012
My Device: 9930
My Carrier: Maroc Telecom

Re: Help, Field Foreground Field

please HELP please

Developer
Posts: 209
Registered: ‎04-30-2011
My Device: BlackBerry Z10
My Carrier: Airtel

Re: Help, Field Foreground Field

Hi 

Can you please elaborate your issue.

Pawan
Thanks 

Contributor
Posts: 21
Registered: ‎03-09-2012
My Device: 9930
My Carrier: Maroc Telecom

Re: Help, Field Foreground Field

Hello,

 

I have two fields, the field with image, and the second with text (In the example : Hareem Sultan Vendredi ......)

 

I have to add the first field (Image) on a screen, and I want to add the second field foreground the first field (image) with transparency style like the example

 

 

Help Pls 

 

 

Developer
Posts: 209
Registered: ‎04-30-2011
My Device: BlackBerry Z10
My Carrier: Airtel

Re: Help, Field Foreground Field

Hi,

1) Take a image first put it into the background of MainScreen.

 

2) Take a manager, 

 

2.1) Take a transparent  image according to your look so that the (MainScreen) background images should be visible. And put this into the background of the manager.

 

2.2) Take a LabelField and add it into this manager.

 

Thanks

 Pawan

 

Contributor
Posts: 21
Registered: ‎03-09-2012
My Device: 9930
My Carrier: Maroc Telecom

Re: Help, Field Foreground Field

pls I am beginner in blackberry dev , post  for me the source code 

 

pls

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Help, Field Foreground Field

I think an easier solution is to take a BitmapField, and override its paint() method to paint the Bitmap (image) and the paint the text over the top.  This is actually not that hard, but you need to have the BitmapField correct first.  So Create a Screen which displays the image you want first, then we can help you put the text over the top.

Contributor
Posts: 21
Registered: ‎03-09-2012
My Device: 9930
My Carrier: Maroc Telecom

Re: Help, Field Foreground Field

Help pls source code 

Highlighted
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Help, Field Foreground Field

Better for you to give it a try and see how you go.  Just take a standard BitmapField, then override paint().  Call super.paint, then try to do some of your own painting using the various methods available in thr Graphics class. 

 

Good luck.