473,508 Members | 3,343 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Catching MouseClick events

Hi,

I have a webpage to which I have been able to draw an image as a
background and with some icons positioned in several places. The image
is a map of the local area and the icons represent certain places in
the map. I have drawn the icons using the drawimage method but was
wondering how I could be able to detect when the user clicks on an icon
in the map. I need this so I can show a popup with some information
about the place the user has clicked.

Thanks

Jul 4 '06 #1
2 1013

not sure if this is waht you meant, but you can do that in several ways

1 - use an ImageMapControl

http://authors.aspalliance.com/aspxt...ebcontrol.aspx

2 - use an ImageButton

http://authors.aspalliance.com/aspxt...agebutton.aspx

3 - use an HTML image with a map element

http://authors.aspalliance.com/aspxt.../objs/map.aspx

____________________

Reynald V. Nuñez
http://authors.aspalliance.com/aspxtreme

Jul 4 '06 #2
Hi,
>
I have a webpage to which I have been able to draw an image as a
background and with some icons positioned in several places. The image
is a map of the local area and the icons represent certain places in
the map. I have drawn the icons using the drawimage method but was
wondering how I could be able to detect when the user clicks on an icon
in the map. I need this so I can show a popup with some information
about the place the user has clicked.

Thanks
I think you need to use an imagemap.

http://msdn.microsoft.com/library/de...ies/usemap.asp

Hans Kesting
Jul 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
396
by: vince | last post by:
Couldn't find a better place to post the question, feel free to direct me to a better place... Needing to automate our application testing using a keystroke/mouseclick recorder for playing back...
9
4148
by: vijay21 | last post by:
hi all, This is about javascript window events. I have a simple html file like this <html> <head> </head> <body onmousedown="alert()"> <form> <input type="text">
3
1554
by: Billy Porter | last post by:
How would I go about catching events outside my application? Example: Babylon Pro is a program that runs silently (with a hidden GUI) in the system tray. Whenever you use the keyboard/mouse...
0
928
by: Lars Netzel | last post by:
Is there any events for catching a ValueChange in a DataView or a Dataset? I looked in the help and I could'nt find anything that I understood how to use, and there was not that many events on...
2
1716
by: Anders Borum | last post by:
Hello! I was looking at marking objects with a changed state, once properties have been changed. The reason behind this is, that I would like to enlist such objects for processing in a...
4
16717
by: Peter Rilling | last post by:
What is the difference between the MouseClick and Click events?
6
5153
by: Kristian Frost | last post by:
Hi, I'm trying to add, as you might guess, mouseclick listeners to the shapes I am drawing using the GDI+ commands in a similar sort of way as could be done with the old VB "shapes". Problem is,...
2
1390
by: GS | last post by:
how can I tell if it is right mouse click from left mouseclick? I would also to test if a key like control is being held down at the same time. what I would really like to is to capture control...
5
2592
by: lord.zoltar | last post by:
How can I prevent the big close button in the top of the window from closing the window? I want to have and "are you sure?" confirmation so the user must press "Yes" before the program ends. Right...
0
1140
by: Sebastian Michel | last post by:
Hello, I have a transparent form created with: this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.DoubleBuffer, true);...
0
7129
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5637
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.