473,396 Members | 2,029 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,396 software developers and data experts.

Can I holdup and activate the context-menu as a sub-menu?

I like to show a inbetween selfmade menu when rightclicking the page.
So on the first line I want to add "Default right-click menu".

So first I need to capture it, then I need to stop the context-menu
from showing up, then show a self designed pop-up menu and then I need
to be able to activate the real client-site context-menu from this
menu without clicking the right mouse button.

Any idee welcome, thanks!
Jul 23 '05 #1
2 1392
Michel wrote:
I like to show a inbetween selfmade menu when rightclicking
the page. So on the first line I want to add "Default
right-click menu".

So first I need to capture it,
oncontextmenu events, where supported.
then I need to stop the context-menu
from showing up,
That just cannot always be done. Some browsers allow the context menu to
be cancelled and others don't (and others give the user the choice).
then show a self designed pop-up menu and then I need
to be able to activate the real client-site context-menu from this
menu without clicking the right mouse button.


I don't think that can be done at all. Once you have cancelled the
original context menu event that is the end of that so you would need to
induce the browser to re-open it. I am not sure if generating a
contextmenu event would result in the context menu appearing, but
support for creating and triggering your own events is distinctly patchy
anyway.

Richard.
Jul 23 '05 #2
Richard Cornford:
Michel wrote:
I like to show a inbetween selfmade menu when rightclicking
the page. So on the first line I want to add "Default
right-click menu".

So first I need to capture it,


oncontextmenu events, where supported.
then I need to stop the context-menu
from showing up,


That just cannot always be done. Some browsers allow the context menu to
be cancelled and others don't (and others give the user the choice).
then show a self designed pop-up menu and then I need
to be able to activate the real client-site context-menu from this
menu without clicking the right mouse button.


I don't think that can be done at all. Once you have cancelled the
original context menu event that is the end of that so you would need to
induce the browser to re-open it. I am not sure if generating a
contextmenu event would result in the context menu appearing, but
support for creating and triggering your own events is distinctly patchy
anyway.


Still I like to try it, if only I know how to generate a contextmenu
event from javascript?
Jul 23 '05 #3

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

Similar topics

2
by: xixi | last post by:
hi, i found that in alter table command , you can do activate not logged initially to help not log any changes made to the table to log file, cause i have to delete almost 1 million records and my...
4
by: bughunter | last post by:
In version 7.x connect to db activate db db SQL1494W Activate database is successful, however, there is already a connection to the database. works fine - db activated. In 8.x - No!...
2
by: Randy Harris | last post by:
I'm working with Access 2K and seem to be getting some behavior that contradicts the documentation. First, the help says: "Note The Activate event doesn't occur when a form receives focus back...
1
by: June Homer | last post by:
I have a form which has its activate event set to maximise the form. This used to work but no long does. I have put a breakpoint in the Activate event and it is never trapped. The form is opened...
9
by: MLH | last post by:
Say I open a form (MyForm) in design view, then I close it and dbl-click it in the database window to open it. Shouldn't the Activate event occur in all such situations? What might the case(s) be...
3
by: Salad | last post by:
I have a form with a few command buttons. These command buttons open forms. In the OnActivate event of the main form I put in the line msgbox "Activate" When I press a button to open a form,...
10
by: zhou | last post by:
in Visual Basic ,I use Appactivate(AcadApp.caption);
5
by: Adda | last post by:
In a Parent mdi form I have a datagrid. I select a record from the grid and then invoke a childmdi form. I add the childmdi to an arraylist to keep track of it. If a user has selected multiple...
0
by: venkat | last post by:
Hi, I have migrated application code to c#2.0 and when I build the solution I am getting the following warning. My application interacts with Excel. So I need to invoke different methods on...
2
by: Dave Booker | last post by:
I have a Windows form application that I generally run minimized. When a critical event occurs it instantiates another "Alert" form which I want to grab the user focus. In the Alert constructor...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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
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,...
0
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...

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.