473,598 Members | 2,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1410
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
674
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 logfilsiz is 6120 pages, with 15 log primary and 20 log seconday, but still run with log file full error. but i also read that any error in the unit of work in which the not logged initially attribute is activate will result in the rollback, and...
4
5185
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! WHY??? :-(
2
2017
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 from a dialog box, popup, or another form." This doesn't seem to be the case. The form activate consistently fires when focus moves from another form. Secondly, the activate event for a report. I am seeing it fire consistently
1
2049
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 from the frmSwitchboard (the start up form) with a simple DoCmd.openForm "formName". I did have the min/max buttons disabled but have changed them back to enabled in case this was an issue.
9
2550
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 if the Activate event does NOT fire?
3
3811
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, close the opened form, I get the message "Activate"...except for one. All of the called forms have the syntax Docmd.Openform "FormName" with no arguments.
10
16482
by: zhou | last post by:
in Visual Basic ,I use Appactivate(AcadApp.caption);
5
1542
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 records from the grid and has multiple childmdi forms open and then re-selects a previously selected record, I want to activate that childmdi form. Suppose the arraylist contains indexes 0,1,2,3,4 (5 childmdi forms). A user re-selects a child...
0
2195
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 Workbook class. At one line I am activating a workbook using workbook object. Activate(); Then I am getting the following error. Ambiguity between method '_Workbook.Activate()' and non-method 'WorkbookEvents_Event.Activate'. Using method group.
2
7883
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 I call both this.Show() and this.Activate(), but if the parent application is minimized then the Alert form will also stay minimized (and just flash). How can I cause the Alert form to show itself and grab focus?
0
7981
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8284
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
8392
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...
0
8262
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6711
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
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
3894
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
3938
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.