BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-01-2011, 06:19 AM   #1 (permalink)
New Member
 
Join Date: Mar 2011
Model: 9000
PIN: N/A
Carrier: Airtel
Posts: 4
Post Thanks: 0
Thanked 1 Time in 1 Post
Default How to get X and Y co-ordinates on the clickevent

Please Login to Remove!

Hi ,

The following is my question.

I am rendering a image using bitmapfield, when i click on the specific portion/region of the image i need to get the x and y co-ordinates of that region. I am using blackberry 8900.

Please let me know how to accomplish the same with samples/links.


Thanks in advance.
Offline  
Old 03-01-2011, 08:33 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: How to get X and Y co-ordinates on the clickevent

There is no built-in functionality like this. You need to paint the cursor yourself, and since you painted it, you know the coordinates of it, right?

See this example from the knowledgebase:

Create a scrollable image field - BlackBerry Support Community Forums
Offline  
Old 03-01-2011, 10:44 AM   #3 (permalink)
New Member
 
Join Date: Mar 2011
Model: 9000
PIN: N/A
Carrier: Airtel
Posts: 4
Post Thanks: 0
Thanked 1 Time in 1 Post
Default Re: How to get X and Y co-ordinates on the clickevent

Thanks Dougsg.

Will go through the same and revert back for clarifications.
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.