Questions tagged [right-mouse-button]
16 questions
14
votes
3 answers
Jquery: detect if middle or right mouse button is clicked, if so, do this:
Check out my jsfiddle demo, if e.which == 1 then when you left click the h2 it will
e.which == 2 or e.which == 3 then it wont work. 2 is the middle mouse button, and 3 is the right mouse button. i found this too:
JQuery provides an e.which…

android.nick
- 11,069
- 23
- 77
- 112
7
votes
2 answers
java swing hold both mouse buttons
I want to implement a method where the user needs to hold the left and right mouse buttons at the same time.
I'm using Swing and Java 1.7. I've tried this, but it doesn't detect the both-buttons case like I'd expect it to:
public void…

Matej Špilár
- 2,617
- 3
- 15
- 28
6
votes
2 answers
MobaXterm right mouse button double click
Recently I have updated/upgraded to version 10.2, free personal edition. I think right after the upgrade, the right-mouse-button behaviors changed.
I am a long time unix user, I always high light a selection in the term, and then double click the…

Heinz
- 913
- 4
- 12
- 22
3
votes
1 answer
Unity C#: Camera Control Using Automatic Positioning & Mouse Look
I don't usually post here but it has taken me hours now trying to figure this out and I've searched the net already but couldn't find the answer. I'm wishing someone might be able to assist me here. I'm a newbie and this is the first time I'm trying…

Brel
- 43
- 7
2
votes
2 answers
Reposition Jtable Column Header
I have to disable right click on JTableHeader so that user cannot right click over column header and drag to reposition the columns. Do we have any trick to do that? Just to mention left mouse button click works good but when user does RMB and drags…

Pallavi
- 21
- 1
1
vote
3 answers
Explicitly Prevent ContextMenuStrip from Loading in C#
I have a requirement to hide the contextmenustrip when a particular flag is not set. As i don't think we can explicitly control the show/hide of the context menu strip, i decided to trap the right mouse button click on the control with which the…

Anirudh Goel
- 4,571
- 19
- 79
- 109
1
vote
3 answers
JavaFX: prevent right mouse clicks to expand/collapse the TitledPane
i added a ContextMenu to Header of all TitledPanes in an Accordion. it works fine, but how to prevent right Mouse Clicks from Expading or collapsing the TitledPane?
hier is my Code where i show the ContextMenu:
header.setOnContextMenuRequested(new…

Rami.Q
- 2,486
- 2
- 19
- 30
1
vote
1 answer
Enclose In option greyed out in Netbeans GUI builder
Building a Java GUI application using Netbeans IDE. I have created a JPanel in it. After adding a lot of fields, I want to also add a JscrollPane to it. I have found that if we right click on the pane we have an option to Enclose it in a container…

S. A. Malik
- 3,465
- 6
- 37
- 56
0
votes
1 answer
Can I make a context menu entry only appear if an app is running?
Is is possible to have right-mouse-click entries only appear when my application is running? What I am thinking is that I want people to be able to right-click a file in windows explorer and be able to select an entry "Email this file to technical…

rossmcm
- 5,493
- 10
- 55
- 118
0
votes
0 answers
How to insert (instead redefine) context menu item in MAUI.NET control
I did a context menu for the control as described in tutorial: https://learn.microsoft.com/en-us/dotnet/maui/user-interface/context-menu
It works perfect.

jaydopartu
- 63
- 1
- 8
0
votes
1 answer
handle mouse double-click customization
A user customises his mouse so he can issue a double-click using the mouse wheel or a special Logitech button. He reports my software recognises only standard left-button double-clicks.
Any suggestions as to what I'm failing to provide? How to…

Mike Scott
- 169
- 2
- 8
0
votes
2 answers
Pygame: is this the right event for seeing if a mousebutton is pressed
if event.type == pygame.MOUSEBUTTONDOWN:
print("MOUSEBUTTON")
Is this the right event for Mouse button pressed?

Sadd
- 11
- 3
0
votes
1 answer
Right mouse click is disabled in MinGW bash shell, how to restore
When I run the MinGW bash shell, I can no longer open the right-mouse menu. when I exit the shell, and return to the cmd.exe shell, the right mouse button works again.
Is the MinGW bash version disabling the mouse button somehow? and how can I…

vdboor
- 21,914
- 12
- 83
- 96
0
votes
2 answers
On mac, how to detect mouse right click on taskbaricon of wxpython application
I have running simple wxpython application reside in Taskbar/System-tray area that shows popup menu when user click on it. Work fine except I need to show popup menu when user click right mouse button on Taskbar icon (mac).
Binding right click…

Nilay Anand
- 330
- 4
- 17
0
votes
1 answer
InkCanvas: How to erase by Stroke on right mouse click
I have an InkCanvas that works in the InkCanvasEditingMode.Ink. But I want to erase the entire stroke when the user presses the right button. Help me with an advise, please?

Lullaby
- 427
- 9
- 23