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
12
votes
2 answers

adding my program to right-click menu

with right click menu, I mean this: I dont really know what its called, but i hope its right click menu. When I google for queries like title of this question, i get nothing. some tutorials that shows how can i add an .exe to that list etc. but I'm…
Foresp
  • 425
  • 1
  • 7
  • 15
12
votes
2 answers

Disable a right click (press and hold) in WPF application.

I am working on the touch screen application which is running on Windows XP Standard. With current hardware to invoke a right click user has to click and hold for couple of seconds, but this might interfere with other actions like holding a repeat…
Vitalij
  • 4,587
  • 9
  • 42
  • 65
12
votes
4 answers

Qt rightclick QPushButton

I'm using Qt Creator to create a gui for a mineseeper game. How can I know a QpushButton clicked with rightclick? for flag in the game. In other word, which signal used for rightclick?
Khosi
  • 183
  • 1
  • 3
  • 9
11
votes
2 answers

delphi - how do you find out which TPopupMenu a TMenuItem belongs to

Should be simple enough but I can't see it. You can find out the component that was right-clicked on to display a popup menu with: PopupMenu1.PopupComponent but how do you find out the popup menu that contains the TMenuItem that was in turn clicked…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
11
votes
5 answers

How do I handle a right click event in Blazor (client side/WASM) without showing the typical browser context menu?

HandleClick seems to only handle left clicks, but it looks like I can use onmouseup and the MouseEventArgs.Button property to detect the right click. The problem is that the typical browser-provided context menu comes up. Is there a way to prevent…
Scott Reece
  • 395
  • 1
  • 3
  • 13
11
votes
7 answers

How to hide the source code of a HTML page

I created an HTML page and now would like to hide the source code and encrypt it. How can I do that?
Francis
  • 161
  • 1
  • 2
  • 7
11
votes
2 answers

How to pass in multiple file/folder paths via a right-click event (verb) to an executable?

Related: How to add new items to right-click event on Folders and Files in Windows? I added custom right-click verb to all files by adding registry keys to HKEY_CLASSES_ROOT\*. End result looks like…
Chicago
  • 1,619
  • 4
  • 19
  • 32
10
votes
3 answers

Cocoa: Right Click NSStatusItem

I am a .Net developer who need to port a small project into Mac, so I know next to nothing about Objective C. In fact the code below was just a bunch of grasping at straws and shooting in the dark. Trying to build a Status Menu program that opens…
Dan
  • 103
  • 1
  • 5
10
votes
1 answer

Add menu item to windows context menu only for text selection

Someone know where can I add registry key for add some function to the right-click menu only when some text is selected? Such as copy,paste,cut function Thanks :)
user2058638
  • 109
  • 4
9
votes
3 answers

C# MouseClick Event Doesn't Fire On Middle Click or Right Click

This seems like it it should work but its not. I put a debug stop on the SWITCH statement. This event is only getting triggered on left click. Nothing happens and method is not fired on middle or right click. Any ideas? P.S. I already tried using…
Kairan
  • 5,342
  • 27
  • 65
  • 104
9
votes
3 answers

jQuery: preventDefault() not working on input/click events?

I want to disable the default contextMenu when a user right-clicks on an input field so that I can show a custom contextMenu. Generally speaking, its pretty easy to disable the right-click menu by doing something like: $([whatever]).bind("click",…
Jason
  • 803
  • 1
  • 7
  • 14
9
votes
2 answers

Swift: NSStatusItem menu behaviour in 10.10 (e.g. show only on right mouse click)

I am writing a simple status bar app in Swift, and attempting to use the new NSStatusItem API introduced in OS X 10.10. The interface I'm aiming for is a simple left mouse click on the statusItem to toggle a core feature on and off, with a right…
Kieran
  • 771
  • 7
  • 14
9
votes
2 answers

how to simulate right click in javascript

Ok, so i know i can simulate a click by running this code document.getElementById('recover').click(); the closest this i could find was cntextmenu so i tried document.getElementById('recover').contextmenu(); however this does nothing Is it…
mcgrailm
  • 17,469
  • 22
  • 83
  • 129
9
votes
1 answer

wpf listview right-click problem

so I have attached a context menu (right-click menu) to a wpf listview. unfortunately, when you right-click it brings up both the menu and selects whatever item you are over. Is there a way to shut off this right-click select behavior while still…
KevinDeus
  • 11,988
  • 20
  • 65
  • 97
8
votes
3 answers

How To Create a Pop Up Menu with Sub Menu in Java

I would like to add right click menu for my program. I added basit menu with the following code: Pmenu = new JPopupMenu("Menu"); menuItem = new JMenuItem("Sections"); Pmenu.add(menuItem); menuItem =…
CanCeylan
  • 2,890
  • 8
  • 41
  • 51
1 2
3
46 47