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

Posts: 191
Registered: ‎04-02-2013
My Device: BlackBerry Bold 9900
My Carrier: developer

Re: How to add click event in editfield containing image

yes i have added the image first and then the edit field.

But can i do this with the image given above?

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

Re: How to add click event in editfield containing image

[ Edited ]

Looking at thie image, there appear to be three different parts to it:


1) The Border - this you will do with a Border round your Manager

2) The 'Search' magnifying glass icon - this is added as your Bitmap

3) The 'Search' text, is added to your EditField - there are examples on the forum, but the basic idea is that in paint, if there is no text associated with the Search Field, you paint this text yourself. 


Which part of this are you struggling with?



And just to confirm, you should NOT try to use this image to provide the border and search icon in one image.  That is just too complicated and won't look good.