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

3Pcs Dc 12V-24V Tpa3116 D2 100W Mono Channel Digital Audio Power Amplifier Boa J
$18.02
3Pcs Dc 12V-24V Tpa3116 D2 100W Mono Channel Digital Audio Power Amplifier Boa J pictureNEW / SEALED NOTIFIER DAA-5025F AMPLIFIER
$600.0
NEW / SEALED NOTIFIER DAA-5025F AMPLIFIER picture1Pcs Mc1350p Mc1350 Monolithic If Amplifier New Ic Z
$1.69
1Pcs Mc1350p Mc1350 Monolithic If Amplifier New Ic Z pictureGE 7.5hp 213T Motor 5KS213BCT105B Base Mounted Totally Enclosed Fan Cooled New
$600.0
GE 7.5hp 213T Motor 5KS213BCT105B Base Mounted Totally Enclosed Fan Cooled New pictureFanuc A16B-2200-0171/07A Serial Port PCB
$75.0
Fanuc A16B-2200-0171/07A Serial Port PCB  picture






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