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  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

JOHNSON CONTROLS P70MA-2C PRESSURE CONTROL P70MA2C
$180.0
JOHNSON CONTROLS P70MA-2C PRESSURE CONTROL P70MA2C pictureNEW Johnson Controls WEL11A-601R 1/2"NPT Immersion Connector Bulb Well Assy A99B
$16.99
NEW Johnson Controls WEL11A-601R 1/2Johnson Controls M9124-GGA-2 24VAC/DC Electric Non-Spring Return Actuator
$169.99
Johnson Controls M9124-GGA-2 24VAC/DC Electric Non-Spring Return Actuator pictureMetasys Johnson Controls VAV Controller AS-VAV110-1
$60.0
Metasys Johnson Controls VAV Controller AS-VAV110-1 pictureJohnson Controls L62AA-5C Baso Pilot Switch Manual Reset SPST Switch Action
$26.99
Johnson Controls L62AA-5C Baso Pilot Switch Manual Reset SPST Switch Action  picture






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