Short question:
How can I detect where on an image a user has clicked? (independent of user's screen resolution, so pixels are out)
Long question:
I have a map (which is merely an image) that I need to place objects on. What's a good way to go about this?
My current idea:
- import image into Excel (or some other Office application, if there's a benefit to it)
- when the image is clicked, add an object at the clicked point, getting details of the object from the user (and display it in a textbox, label, or something)
One problem, I'm not sure how I can detect the point the user clicked on the map and put an object there. Any ideas?
Another consideration is that the placing of these objects must be independent of the user's resolution mode, so any 'pixel' related methods can't be used. Are the positions of objects (.left, .top, .height, .width members) resolution independent?
If anyone has any good alternative approaches, I'd be interested in hearing them.
How can I detect where on an image a user has clicked? (independent of user's screen resolution, so pixels are out)
Long question:
I have a map (which is merely an image) that I need to place objects on. What's a good way to go about this?
My current idea:
- import image into Excel (or some other Office application, if there's a benefit to it)
- when the image is clicked, add an object at the clicked point, getting details of the object from the user (and display it in a textbox, label, or something)
One problem, I'm not sure how I can detect the point the user clicked on the map and put an object there. Any ideas?
Another consideration is that the placing of these objects must be independent of the user's resolution mode, so any 'pixel' related methods can't be used. Are the positions of objects (.left, .top, .height, .width members) resolution independent?
If anyone has any good alternative approaches, I'd be interested in hearing them.