Click on form and leave a mark

lynxbci

Registered User.
Local time
Today, 22:22
Joined
Nov 27, 2007
Messages
73
Hi
I have a form with an image embedded in it. I want to be able to click on the image and leave a "dot" or "mark" where i have clicked, allowing me to click in multiple places on the image and leave multiple "dots"

I am assuming i need to crate a new shape each time i click, how is this done?

Thanks
 
Create a table, linked to the form and image. Record the location of each click, then build a label of your requisite size, centered on that click point. Then each time the form shows a new image (maybe a new record), use the table to post all the previous click points, if any, on that image. Removing a click point can be problematic if click points overlap. The stored click point are really on the form, not the image.

To save click points on the image, permanently, is another issue, particularly if the image is re-sized. The image size would have to be put in the above table. Click points would have to be scaled, depending on whether or not an image is re-sized.

Modifying the image would probably require an API.

Screen resolution should also be taken into account.
 
This thread contains some discussion on reporting the position of a mouse click that may aid you.
 
Thanks, i would be happy with the labels being on the form, don't need to update the image, just overlay it. I can build the table on mouse click and remember co-ordinates, but can't find the code to create labels in run time. Can you help with this?
 

Users who are viewing this thread

Back
Top Bottom