12-15-2009, 02:27 AM
Thumbs Must Hurt
Join Date: Mar 2007
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Capture click event of mapField
I got the way. I done it in following way and working fine..
int x = message.getX(1);
int y = message.getY(1);
x = x - 20;
y = y - 50;
XYRect rect = new XYRect(x, y, 30, 30);
i have taken all the coordinates from the map..
conerted them one by one to XYPOint and the i checked whether the x,y points are in the rect above....
We can change the x and y in the XYRect as per our reuirements. I changed it bcoz i have drawn the image at such points..
Crazy for BlackBerry