Questions tagged [right-click]

A right-click is pressing the right or secondary button on a mouse.

A term used to describe the action of pressing down on the right mouse button. The right-click is used to provide additional functionality to a computer's mouse, usually in the form of a drop-down menu containing additional options.

Please read more at: http://www.computerhope.com/jargon/r/righclic.htm

694 questions
2
votes
3 answers

Right click menu then item pointing to a class

I want to be able to right click on an image and for there to be a menu show up. When I then click on one of the items I want it to point to a class: private void link1add_MouseDown(object sender, MouseEventArgs e) { if (e.Button ==…
Marshal
  • 1,177
  • 4
  • 18
  • 30
2
votes
1 answer

How to JOptionPane() after right click of and object

I would like to make a mouse-event that allows me to right-click on a tab, to select and delete it. How do I enable the JOptionPane() after the tab name is right clicked? I haven't been able to try myself as I have no idea...
2
votes
1 answer

Does adding item to Windows right-click menu through registry resolve target shortcuts?

I've added a Windows right-click menu item by adding registry keys to HKCR\*\shell, where the command is of the form "path\to\my\program.exe" "params before" "%1" "params after". It seems that, if the user right-clicks on a shortcut (.lnk file),…
Becca Dee
  • 1,530
  • 1
  • 24
  • 51
2
votes
0 answers

nesting context menus

I'm trying to add a right click menu to a ToolStripMenuItem but I'm unsure how to do that. The application I've inherited creates is a system tray application that creates and displays a ContextMenuStrip with ToolStripMenuItems in it on the fly…
user1200340
  • 157
  • 1
  • 3
  • 10
2
votes
3 answers

Bind event to right-click

How do I bind to or recognize a right-click event? I have a scatter plot where left-click adds a point at the clicked location; I would like right-click to remove the point (if present). This is my current code: var chart = new Highcharts.Chart({ …
Matt Fenwick
  • 48,199
  • 22
  • 128
  • 192
2
votes
1 answer

Select ListBox item on rightclick in Word VBA

I'm developping a project in Word 2003 with VBA. I have a multiselect ListBox with some entries (dates). On rightclick I'd like to have an InputBox popping up where the user can change the selected date. This works well, as long a specific item is…
Philipp Gfeller
  • 1,167
  • 2
  • 15
  • 36
2
votes
1 answer

capture right click through Javascript, withouth wmode

Flash player has a bug in using anything other than wmode="window" in Firefox/Chrome when using any other language than English. This bug is reported and not fixed yet http://bugs.adobe.com/jira/browse/FP-501 The issue can be seen better here -…
Hiraash
  • 21
  • 2
2
votes
2 answers

Add option to right-click menu in Firefox

Hi I'm studying Python and I've started my first little project. The first thing that I want to do is to add an item to the right click menu of Firefox. So, when I right-click a link that item will be available and when I click it some Python code…
mxch
  • 835
  • 2
  • 10
  • 20
2
votes
1 answer

MySQL Workbench overwrites query tab code

When I right-click a table in MySQL Workbench (version 5.2) Object Browser, choosing "Select Rows - Limit 1000", I expect the result to appear in a new tab. Instead, the currently selected query tab has its contents replaced with a generated SELECT…
Gruber
  • 4,478
  • 6
  • 47
  • 74
2
votes
2 answers

Dojo DataGrid Context Menu onRowContextMenu displays even when right-clicking in BLANK area of DataGrid

I have a DataGrid that has items in it. When you right-click on one of the rows, a Dojo Context Menu is displayed with the option to delete that row. If you try to right-click on a blank area of the DataGrid, the context menu is NOT displayed.... …
2
votes
1 answer

How would I go about including Ctrl+Click as a right-click? (Java)

I have an option to right-click. But users that need to use Ctrl + Click cannot use right-click because Java only allows for the right-click button to be hit. Does anyone know how I can allow for Ctrl + Click, as well as the right-click…
Dylan Wheeler
  • 6,928
  • 14
  • 56
  • 80
2
votes
2 answers

How can I make a right-click behave as a left-click for the purpose of selecting or focusing an object

Event though a right-click (as far as I know) fires a mousedown event, that mousedown seems to be ignored in most cases. I'm currently working on displaying a custom context menu via a right-click, but I'd also like to be able to select an option…
2
votes
2 answers

Add Java program to Ubuntu context menu

I'm developing a Java desktop application that is to be used with Ubuntu. I need to add a context menu item which appears when the user right clicks on a file and to pass the fully qualified file path as an argument to the program. After searching…
user668943
  • 535
  • 1
  • 5
  • 8
2
votes
1 answer

VBA: right click in user form

is there an easy way to enable the right click pop up menu in a text box in a user form in vba, excel? Im just trying to paste into a textbox but cant open the menu on right click in a user form my code is giving a "Compile error: Argument not…
2
votes
1 answer

how to capture event when right clicking on tab using winforms in powershell

I want to fire an event when right clicking on a tab, not the contents displayed by the tab, but the tabs themselves. So far, I have tried using the selected event for the tabcontrol: $maintab.add_selected({do something here}) this only fires when…