Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

How to find x,y of stilus on image ?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-20-2007, 02:02 PM
Newbie
 
Join Date: Dec 2007
Posts: 5
Default How to find x,y of stilus on image ?

I've tried to add event mousedown to image-control on form, but when I "click" on image - no reaction. How can I find coordinates of touching point on image then ? Mousedown event on the form works fine, but I need several images and to get exact coordinates of touches. Thanks in advance !
Reply With Quote
  #2 (permalink)  
Old 12-20-2007, 02:03 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,732
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You will need to draw the images on the form instead.
Use Form1.DrawImage.
Reply With Quote
  #3 (permalink)  
Old 12-21-2007, 01:17 PM
Newbie
 
Join Date: Dec 2007
Posts: 5
Default

Yes, I wrote that I know about that way, but how can I put several images on a form simultaneously ? I think it's impossible It would be much easier could I just add event mousedown to the image-control. At PDA almost all control can be made only by pen, so it's nessesary to know the x-y of touch. But now that image-control can be used just as a Big Beautiful Button...
Well, another way - can I bring the form to the front and make it transparent to see background images and intercept touches ?
Reply With Quote
  #4 (permalink)  
Old 12-21-2007, 01:35 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Ioannina, Greece
Posts: 356
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

See this thread http://www.basic4ppc.com/forum/additional-libraries/748-dzeventsmagic.html
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #5 (permalink)  
Old 12-21-2007, 02:01 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,732
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

@dzt, can you also retrieve the x,y coordinates with dzEventsMagic?
Reply With Quote
  #6 (permalink)  
Old 12-21-2007, 03:53 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

At a more abstract level than dzEventsMagic I can add the mouse events as a straight forward B4PPC event to my ControlEvents library if anyone is interested?
Reply With Quote
  #7 (permalink)  
Old 12-21-2007, 05:22 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Ioannina, Greece
Posts: 356
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Erel View Post
@dzt, can you also retrieve the x,y coordinates with dzEventsMagic?
Of course. Where will be the magic if not?

I've posted a new sample.

http://www.basic4ppc.com/forum/showthread.php?t=748
Post #22, page 3
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #8 (permalink)  
Old 12-21-2007, 06:24 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,732
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Reply With Quote
  #9 (permalink)  
Old 12-24-2007, 10:54 AM
Newbie
 
Join Date: Dec 2007
Posts: 5
Default

Thanks for your help, but I have no rights to download anything from the dzEventsMagic thread....
Reply With Quote
  #10 (permalink)  
Old 12-24-2007, 11:00 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,732
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Sorry but the additional libraries are only available to users who purchased Basic4ppc.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Replace JamesC Basic4ppc Wishlist 4 11-18-2008 03:45 PM
Cant Find Netframe 2,0 scott93727 Questions (Windows Mobile) 3 10-22-2008 08:05 AM
find license Put Claude Questions (Windows Mobile) 1 10-14-2008 03:43 PM
find keyword lijingtong Questions (Windows Mobile) 2 06-20-2008 09:05 AM
Move an image inside an image control Cableguy Questions (Windows Mobile) 5 05-14-2007 07:40 PM


All times are GMT. The time now is 06:16 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0