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

LAMBDA LS SUTTER INSTRUMENT COMPANY XEON ARC LAMP W/ FILTER
$1300.0
 LAMBDA LS SUTTER INSTRUMENT COMPANY XEON ARC LAMP W/ FILTER pictureNew HP Proliant DL380 Gen4/ML370 Server Intel Xeon Processor 311584-B21
$60.99
New HP Proliant DL380 Gen4/ML370 Server Intel Xeon Processor 311584-B21 pictureLOT OF 2 INTEL XEON SLACB CPU/MICROPROCESSORS E5310
$19.99
LOT OF 2 INTEL XEON SLACB CPU/MICROPROCESSORS E5310 pictureAvere Rack Server SuperMicro X8DTU-6+ Intel Xeon E5645 2.4GHz DDR3 148gb
$499.9
Avere Rack Server SuperMicro X8DTU-6+ Intel Xeon E5645 2.4GHz DDR3 148gb pictureSupermicro Rack Server SP3000-SR Intel Xeon E5520 2.27GHz DDR3 48gb Gigabit Ethe
$299.99
Supermicro Rack Server SP3000-SR Intel Xeon E5520 2.27GHz DDR3 48gb Gigabit Ethe picture






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