473,667 Members | 2,548 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 1018

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 user events in a Windows form app.... I thought there was something called Microsoft Test, but can't find any info on it... Does Microsoft still make something like this...??? If
9
4163
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
1565
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 combination CTRL+Right mouse click (in ANY program), the GUI is shown containing the dictionary lookup of the marked word. If I were to write such an application, how could I catch that particular keyboard combination outside of my application.
0
935
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 those Objects. /Lars
2
1729
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 transaction. The example below illustrates a sample pattern, which is fine when exposing simple value types. However, when exposing reference types, it becomes really hard (if not
4
16728
by: Peter Rilling | last post by:
What is the difference between the MouseClick and Click events?
6
5159
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, I'm really not sure of the best way to go about it. I was hoping I could do it directly like the old shape_onclick events, but that doesn't seem to be available for GDIs so maybe I could hack something together using collections of GDI objects and...
2
1393
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 right mouse click for debugging purpose. in a generic event handler.
5
2602
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 now, I've tried catching the FormClosing and FormClosed events. The message box appears at the right time, but since the form is already closing, it doesn't matter if the user presses "Yes" or "No". how do I cancel the FormClosing?
0
1148
by: Sebastian Michel | last post by:
Hello, I have a transparent form created with: this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.DoubleBuffer, true); this.SetStyle(ControlStyles.ResizeRedraw, true); this.TransparencyKey = Color.Violet; this.BackColor = Color.Violet;
0
8883
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8788
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8563
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4200
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.