01-07-2009 01:49 PM
I’m starting my Blackberry development using JDE and I would appreciate some pointers to get my first application going.
I want to display a image to the user and allow it to “point and click”, always assuming the user BB has a trackball.
I’ve manage to display the image using
Now I would like to display the “cursor” and allow the user to move it using the trackball.
I assume that the trackball movement would be capture with the method navigationMovement, right?
How can I display the current “cursor” position?
Thanks in advance
01-07-2009 02:21 PM
Make sure you set the FOCUSABLE flag on this BitmapField. The system will paint a highlight cursor (based on the current theme) for you.
Place a FieldChangeListener on the field - this will notify you when the bitmap is clicked by the user.
If you take this "high-level" approach, your field will work on the most devices (trackball, touch, etc)) with the least amount of special coding.
01-08-2009 04:20 AM
Rex, Thanks for your input.
I've tried that:
But I dont see the img getting "highlighted".
Anyway that is not exactly what I want. I want to show a "pointer" of shorts so that the user can click on different areas of the image and I can tell from the app where did he/she clicked.
Any tips on how to do that?
01-12-2009 12:30 PM
Please see this link.
How To - Show focus changes using BitmapField