contextmenu

How to add a “open git-bash here…” context menu to the windows explorer?

∥☆過路亽.° 提交于 2019-11-27 06:15:27
How to add a context (aka right click) menu to the windows explorer that, when clicked, opens the git-bash console in the current explorer folder? I had a similar issue and I did this. Step 1 : Type "regedit" in start menu Step 2 : Run the registry editor Step 3 : Navigate to HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell Step 4 : Right-click on "shell" and choose New > Key. name the Key "Bash" Step 5 : Modify the value and set it to "open in Bash" This is the text that appears in the right click. Step 6 : Create a new key under Bash and name it "command". Set the value of this

Add contextmenu items to a Chrome extension's browser action button

瘦欲@ 提交于 2019-11-27 05:40:41
问题 A G Chrome extension can have a 'browser action'. Usually the ext developer displays the options when you click on it, meaning every action requires 2 clicks, even the default 99%-of-the-time action. Chrome itself adds a context menu with a few options: disable ext, uninstall ext, go to ext homepage etc. Can I as ext developer add items to that context menu, so I can keep my 1-click-action under the normal/left/primary mouse click? I know of chrome.contextMenus but that's only for context

WPF Context menu doesn't bind to right databound item

 ̄綄美尐妖づ 提交于 2019-11-27 05:37:12
问题 I have a problem when binding a command in a context menu on a usercontrol that is on a tab page. The first time I use the menu (right-click on the tab) it works great, but if I switch tab the command will use the databound instance that was used the first time. If I put a button that is bound to the command in the usercontrol it works as expected... Can someone please tell me what I'm doing wrong?? This is a test project that exposes the problem: App.xaml.cs: public partial class App :

Windows explorer context menus with sub-menus using pywin32

坚强是说给别人听的谎言 提交于 2019-11-27 05:22:52
问题 I'm trying add some shell extensions using python with icons and a sub menu but I'm struggling to get much further than the demo in pywin32. I can't seem to come up with anything by searching google, either. I believe I need to register a com server to be able to change the options in submenu depending on where the right clicked file/folder is and the type of file etc. # A sample context menu handler. # Adds a 'Hello from Python' menu entry to .py files. When clicked, a # simple message box

Custom ListView and context menu. How to get it?

 ̄綄美尐妖づ 提交于 2019-11-27 05:20:08
问题 I have a two layouts files in my app. Also I have Activity extends ListActivity. Every item of this activity looks consider item.xml layout file. I am trying to get context menu when make long presss on item, but I don't see it. In my activity I trying to registerForContextMenu(getListView()) and override two methods @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle bundle = this.getIntent().getExtras(); registerForContextMenu(getListView()

how to build jqgrid context menu from top level toolbar

喜你入骨 提交于 2019-11-27 04:48:51
问题 Custom values to Context Menu Items in JQgrid contains great sample about adding context menu to jqgrid. If edit,delete, add operations are dynamically disabled, synching context menu with toolbar requires additional coding. How to create context menu automatically from jqgrid top level toolbar so that additional coding is not required? Context menu should contain toolbar buttons icons and button titles become menu item titles. Selection menu triggers toolbar button click event. Or if this is

How do you show the Windows Explorer context menu from a C# application?

烈酒焚心 提交于 2019-11-27 04:19:31
问题 I have a file listing in my application and I would like to allow people to right-click on an item and show the Windows Explorer context menu. I'm assuming I would need to use the IContextMenu interface, but I'm not really sure where to start. 回答1: There's a very good tutorial (albeit in C++) about hosting an IContextMenu on Raymond Chen's blog in 11 parts (in order): Initial foray Displaying the context menu Invocation location Key context Handling menu messages Displaying menu help Invoking

wpf listview right-click problem

泪湿孤枕 提交于 2019-11-27 03:30:02
问题 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 allowing the context menu? 回答1: The key is setting the PreviewMouseRightButtonDown event in the correct place. As you'll notice, even without a ContextMenu right clicking on a ListViewItem will select that item, and so we need to set the event on

ContextMenu on button click not firing command

南笙酒味 提交于 2019-11-27 02:27:57
问题 Here is a problem. I am displaying context menu on a button click and the menu command is bind to ICommand in the view model. Menu is displaying on the button click as well as on the right click. The problem is menu click is not firing when I click button and then click context menu, but I can confirm that menu is working when I right click on button and then click on menu. <Button Grid.Row="3" Width="500" Height="30" Name="cmButton" > Button with Context Menu <Button.ContextMenu>

How to Pass MULTIPLE filenames to a Context Menu Shell Command?

一个人想着一个人 提交于 2019-11-27 02:03:56
问题 Passing a single filename to a context menu shell command is simple: [HKEY_CLASSES_ROOT\*\shell\MyProgram\Command] @="program.exe %1" But if I select multiple files, program.exe is invoked for each such selected file. What I would like to do instead is invoke program.exe only once, passing to it all the filenames currently selected. How to do this? 回答1: You may want to look at this post, as it says that this isn't really possible to pass multiple files to a single instance and you must rely