contextmenu

How can I use the system's context menu for files in a Java application?

坚强是说给别人听的谎言 提交于 2019-12-07 16:23:19
问题 I want to display results of a file search. I want to enable a context menu for a file selection, which will be the system's context menu. For example, if the user right-clicks a file in Windows - I want to display the popup-menu with the options: Open Open with... Edit Send to... Copy Cut etc... And, if possible - this menu will be generated automatically, depending on the operating system. If that is not possible or too complex - I'd like to at least enable a "Locate on disk" option which

React Context Menu on react table using react-contexify

末鹿安然 提交于 2019-12-07 14:37:12
问题 I have a project that I am using react table with but also need a context menu to popup on right click of the row in the react table. The only thing I cant get is the selected row data. Because I have to wrap the entire react table in the context menu component, props returns just the main react table component and not active row. Here is my code. <ContextMenuProvider id="menu_id"> <ReactTable data={items} columns={columns} showPagination={false} getTdProps={(state, rowInfo, column, instance)

How to configure ContextMenu buttons for delete and disabled in SwiftUI?

不想你离开。 提交于 2019-12-07 11:17:54
问题 I tried to configure the button in the contextMenu , but it's not working. Text("A label that have context menu") .contextMenu { Button(action: { // remove it }) { Text("Remove") .foregroundColor(.red) // Not working Image(systemName: "trash") }.disabled(true) // Not working } what I have: What I'm seeking: ( delete and call buttons) I would create a UIAction like the following in UIKit but I can't find any modifier or anyway to bring this to the SwiftUI : let delete = UIAction(title: "Remove

Adding WP7 ContextMenu programmatically

萝らか妹 提交于 2019-12-07 10:33:29
问题 I'm loading elements on a page dynamically (reading the contents of an XML file). The dynamic content is loaded into a StackPanel . Each element of the content consists of a TextBlock and one other UI element, so for each pair I create a new StackPanel which is then added to the parent StackPanel . The code looks like this: TextBlock header = new TextBlock() { Text = "Heading 1", HorizontalAlignment = HorizontalAlignment.Stretch, VerticalAlignment = VerticalAlignment.Top, Foreground =

How can I create multiple context menus?

倾然丶 夕夏残阳落幕 提交于 2019-12-07 10:08:47
问题 I have 1 activity, but would like to have multiple context menu's for different UI components. For example, I have a ListView which will react to: @Override public void onCreateContextMenu(ContextMenu menu, View v,ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); menu.setHeaderTitle("Selection Options"); menu.add(0, v.getId(), 0, "Remove"); } How can I create another context menu for the onClick event for an ImageView I have? 回答1: Actually, this method is to change the

Receiving arguments from Windows Context menu

≡放荡痞女 提交于 2019-12-07 09:01:07
问题 I have done this before but for the life of me can't remember how to do this... In my explorer context menu I added a new entry (go to regedit...go to HKEY_CLASSES_ROOT...bla bla bla)... Now when I click on my option I want to pass in the file path, file name, those kind of things to my application...and then use it there? 回答1: The default value of the .ext\shell\open\command key should contain the path to your .exe with the "%1" argument. Explorer substitutes that with the full path to the

Pass multiple files / folders from windows explorer to external application

可紊 提交于 2019-12-07 07:29:10
问题 Hi does anyone know how to get windows explorer to pass multiple files / folders through to an external app (c#) referenced in the registry? I am current able to act upon a single file / folder using the %1 syntax but not sure how to get explorer to pass through multiple items. Does anyone know how to do this? 回答1: When you select multiple files in Explorer, your shell context menu extension's IShellExtInit::Initialize method will be called and pdtobj contains the selection. Note writing

Can I add a custom paste option to the windows text editing context menu?

孤者浪人 提交于 2019-12-07 06:51:26
I am looking for a way to add an option(s) to the right click context menu when editing text on a WinXP machine. I already do a lot of copy/pasting on it, so the clipboard is always changing, but there is one string I type repeatedly in almost every file I edit. I've already added some custom option to the context menu for .zip files to batch unzip them, but I'm not having any luck finding a way to add this. The machine is used for a single purpose and I try to keep it as stable as possible so I'm trying to stay away from any new third-party software that could bloat the system. I don't think

How to attach context menu to TChromium browser

▼魔方 西西 提交于 2019-12-07 06:27:02
问题 I have a TChromium broser from Delphi Chromium Embedded (http://code.google.com/p/delphichromiumembedded). I would like to attach a context menu to it. How I can achieve that? 回答1: You need to handle the OnBeforeMenu event. In that event handler is enough to set the output parameter Result to True what will suppress the default context menus to popup. After that you can display your own menu on the positions obtained from the menuInfo structure. Here's the code sample with a custom popup menu

Context menu on nested child element also shows parent context menu

梦想与她 提交于 2019-12-07 05:31:54
问题 I have multiple DOM elements with context menus. When one element is a child of the other and I invoke the context menu of the inner child, I also see the context menu from the parent. This is implemented with the jquery-ui.contextmenu plugin. Is there a way to configure the plugin to prevent the parent's menu from being shown or am I going to have to handle all the click events manually and filter them so I show only the menu I want? Following is my code: HTML: <!-- Add a child which will