Does anyone know of an Image Map-like Blackberry Control that I can use in my CLDC application? If there isn’t one, is there a way to get click x,y coordinates on a MainScreen or BitmapField derived control?
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you’re thinking of this control for the Storm – the only device for which clicking on an arbitrary point on screen makes sense.
In that case, the easiest way is probably to subclass BitmapField to be focusable and respond to clicks – something like this:
Of course it’d be a lot more complicated to implement image map type functionality for a trackball device – you’d have to maintain a cursor or something so the user knows where they’re clicking.