How to find x,y of stilus on image ?

nomick

Member
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 !
 

Erel

Administrator
Staff member
Licensed User
You will need to draw the images on the form instead.
Use Form1.DrawImage.
 

nomick

Member
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 ?
 

Erel

Administrator
Staff member
Licensed User
@dzt, can you also retrieve the x,y coordinates with dzEventsMagic?
 

agraham

Expert
Licensed User
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?
 

Erel

Administrator
Staff member
Licensed User
Sorry but the additional libraries are only available to users who purchased Basic4ppc.
 
Top