Welcome! Log In Create A New Profile

Advanced

Deleting an ATM on a map

Posted by manish matikola.pcs.crosspost 
manish matikola.pcs.crosspost
Deleting an ATM on a map
May 06, 2009 08:39AM
Good Morning...

Well I have inserted several ATM represented by an image on a map. The problem is that i will have to add a functionality so that the atm can be selected via a mouse click and can be deleted. I am not able to carry out this task. Can anybody give me a hint how to do it?

Thanks in advance



Message forwarded from pcsoft.us.windev
Fabrice Harari.pcs.crosspost
Re: Deleting an ATM on a map
May 06, 2009 11:06AM
Hi Manish...

You know WHERE you inserted the atms (x,y position)... If not, you
should keep this information in the record of the atm...

Then when the user clicks, you get eh X,Y position of the click... if it
matches (+/- 10 pixels by example) the position of one atm, you remove
the atm from the list of atm to position on the map, and you regenerate
the map

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on [www.fabriceharari.com]


manish matikola wrote:
> Good Morning...
>
> Well I have inserted several ATM represented by an image on a map. The problem is that i will have to add a functionality so that the atm can be selected via a mouse click and can be deleted. I am not able to carry out this task. Can anybody give me a hint how to do it?
>
> Thanks in advance
>
>
>
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on [www.fabriceharari.com]
Message forwarded from pcsoft.us.windev
Piet van Zanten
Re: Deleting an ATM on a map
May 06, 2009 06:48PM
Hi Manish,

You could even activate the right click code on the image an display a nice popup menu:
add, delete etc.
You can get the click position with MouseXPos() and MouseYPos()

Regards,
Piet
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: