473,387 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Right Click Image detection

I want to be able to detect if an image has been right-clicked. I have 5
images in my program. If I Click the image it gets selected by my program.
But I want to be able to Right-Click one of the images which will mean all
other images will be selected.
eg:
Private Sub Image1_Click(Index As Integer) ' I want it to be a R/Click not a
Click
For x = 0 to 4
If (x <> index) then
ImgSelected(x) = True
Else
ImgSelected(x) = False
Next x
End Sub

This function will flag the other 4 images as selected
How do I detect a R/Click as opposed to a Click If this is not possible for
some reason, what about Shift-Click.

Thanks
Trevor.


Jul 17 '05 #1
1 4496
> I want to be able to detect if an image has been right-clicked. I have 5
images in my program. If I Click the image it gets selected by my program.
But I want to be able to Right-Click one of the images which will mean all
other images will be selected.
eg:
Private Sub Image1_Click(Index As Integer) ' I want it to be a R/Click not a Click
For x = 0 to 4
If (x <> index) then
ImgSelected(x) = True
Else
ImgSelected(x) = False
Next x
End Sub

This function will flag the other 4 images as selected
How do I detect a R/Click as opposed to a Click If this is not possible for some reason, what about Shift-Click.


You can't detect right/left click in the Click event... use either the
MouseDown or MouseUp event depending on the logical flow requirements of
your code.

Rick - MVP
Jul 17 '05 #2

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

Similar topics

3
by: Gary Mayor | last post by:
Hi, I'm re phrasing and earlier question as the earlier question doesn't make to much sense. I using document.onmousemove to move a <div line on the screen. At the moment if I click and move the...
7
by: Paul Cooper | last post by:
Dear All, I am working on a piece of Javascript code that needs to detect a mouse-click, shift-click and control-click. The code is not my own - it is a part of a much larger suite of routines....
21
by: news.btinternnet.com | last post by:
I can do this in IE myLink.click(); //Invoking the handler as if the user had clicked on the link themselves. I need to be able to do the same in Netscape Navigator, can anyone help ?
9
by: Maxi | last post by:
There is a very good javascript available at the following link that displays image and text wherever mouse follows a link. http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm I have a...
3
by: Dustin Carroll | last post by:
Hello, I am trying to capture a right mouse button click on an image. So far I am getting the left click with <body onload="document.getElementById('image').onclick=eventclick;"> <image...
2
by: Eadmund | last post by:
Hi all, Odd question / problem: I'm using a tooltip fom the "Dynamic Drive DHTML code library (www.dynamicdrive.com) - v-cool" - (snipits that are relevant trimed for readability and included...
8
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? -----------------------------------------------------------------------...
3
by: OleJul | last post by:
I am at present working on integration of help functions in my Access data base. My intention is simply to make a right click on an object (including labels) to open a specific help topic. In a...
10
by: Benny | last post by:
I am wondering if anyone has a simple approach to detecting the location of boxes and/or lines on an image. For example, if I have an image of a form, and want to find out where all of the boxes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.