Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed 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, 03: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, 03:03 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

You will need to draw the images on the form instead.
Use Form1.DrawImage.
Reply With Quote
  #3 (permalink)  
Old 12-21-2007, 02: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, 02:35 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

See this thread dzEventsMagic
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #5 (permalink)  
Old 12-21-2007, 03:01 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

@dzt, can you also retrieve the x,y coordinates with dzEventsMagic?
Reply With Quote
  #6 (permalink)  
Old 12-21-2007, 04:53 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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, 06:22 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
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.

dzEventsMagic
Post #22, page 3
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #8 (permalink)  
Old 12-21-2007, 07:24 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Reply With Quote
  #9 (permalink)  
Old 12-24-2007, 11: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, 12:00 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
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 On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 05:29 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0