contextmenu

Context Menu on Android WebView

I'd like to add a context menu on an entire Android WebView. I have the following code: registerForContextMenu(findViewById(R.id.webview)); ... public void onCreateContextMenu (ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); if (v.getId() == R.id.webview) { //displa...

How to get the position/dimensions of the open context menu on the desktop?

Hi, I have a utility that is opened from the context menu. You right-click an item in Windows Explorer and hit the "utility" button in the context menu to open the app. This brings up a little 'window' that's styled to be similar to a right click menu. Currently, it's really jarring to have that new menu open in a completely different p...

How do I create a Treeview with a Context Menu in Silverlight 4?

Silverlight 4 now include the option for creating a context menu upon right clicking. Can anyone provide me with an example of a treeview with a right click context menu for the treeview? Ultimately I want a the menu to show different options depending upon the node depth selected - bonus points if the example includes this! ...

Customize the items showing in Context Menu of VS IDE

After installing some plug-ins for Visual Studio, they have added their own context menu options to the context menu of VS IDE. so now when I right click on the IDE, there is a huge list of menu items in its context menu. Is there a way we can add/remove the items that are showing in this pop-up menu of the IDE? ...

C# -- How can I track what a user selects in a context menu?

Hello all, I am working on a project which aims to gather data on students' writing styles. One issue we are currently facing is the idea of context menus. Is there a way I can be notified when the user right clicks, and then clicks "copy," "paste," or any other option? Thanks, Emily ...

Compact Framework: Context menu for ComboBox with style DropDown does not show on the edit portion of the control

I am working in .NET Compact Framework, C#, .Net 2.0, Visual Studio 2005. I have a form with several ComboBoxes, which have DropDownStyle = DropDown, so I can edit information in the controls. This form must have a ContextMenu (Cut, Copy, Paste etc). I did a menu, but there is a problem: When a ContextMenu is assigned to a ComboBox, th...

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

Hello, 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...

Problem binding a context menu item with a dependency property

Hi, I have a Custom Canvas(DesignerCanvas), user can add some controls to this canvas. Before adding any control canvas first wraps it insdie a custom control(Designer Item) and then add that control to canvas. This is done as in this codeproject article - WPF Diagram Designer - http://www.codeproject.com/KB/WPF/WPFDiagramDesigne...

Context Menu Problem - how to resolve these menu items??

Hi, I am very new to Android. I am trying to build inflate a context menu within the sample GridView provided on the Android dev site. Eclipse tells me that the referenced items cannot be resolved, if someone could help find where I coded s.th. wrong, that would be great because I am stuck at the moment. Thanks. I posted my entire co...

How to share menu-items between the listview and its items?

Hi everyone, I have a listview and want to have 2 context menus for it: 1) when right-click on an item (called Menu 1) and 2) when right-click on elsewhere spaces except the items (called Menu 2). There are sub set of menu-items shared between the two - let's call this CommonMenu. My test application is store here. My problem is: when t...

Problems with using TrackPopupMenu on win7

I'm trying to create context menu using TrackPopupMenu function in my application, the code I use in it is like the following: CMenu menu; if (menu.LoadMenu(IDR_MENU_TRAY)) { CMenu* pSubMenu = menu.GetSubMenu(0); if (pSubMenu != NULL) { pSubMenu->ModifyMenu(IDM_CLOSE,MF...

How i can create context menu for extjs grid

I can create context menu for tree and attach to 'contextmenu' event. Code: contextMenu = new Ext.menu.Menu({ items: [{ text: 'Edit', iconCls: 'edit', hadler: edit },...] }) Ext.getCmp('tree-panel').on('contextmenu', function(node) { contextMenu.show(node.ui.getAnchor()); }) But how i can create context menu for gri...

ContextMenu in Style setter

Does anyone know why this would produce an XamlParseException "Cannot add content of type 'System.Windows.Controls.ContextMenu' to an object of type 'System.Object'": <ItemsControl> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Canvas ClipToBounds="True"/> </ItemsPanelTemplate> </ItemsControl.ItemsP...

How can I test context menu functionality in a web app?

I'm playing with a grails app that has a contextmenu (on right-click). The context menu is built using Chris Domigan's jquery contextmenu plugin. While the contextmenus do actually work, I want to have automated tests, and I can't work out how to do it. I've tried Selenium 2.05a (ie. Webdriver), but there's no rightClick method. I not...

WPF MVVM: how to create & show a context menu?

For my WPF application I'm using MVVM, and now I want to show a generated context menu when the user right-clicks on something. Routing the right-click to some action was easy, but how do I show a contextmenu which items are generated by the ViewModel? I don't even have an idea where to start to display a context menu, since I do not ha...

Flex context menus don't allow "About" any more

We've got a Flex application (using 3.0) which has some custom context menus. One thing we add is an "About..." entry which pops up an Alert with the application's version string and copyright information. Unfortunately, Flex seems to have recently taken a dislike to our caption -- supplying "About" or "About..." leads to the menu item...

WPF ContextMenu and CanExecute timing

So I have a context menu in a TreeView and it wasn't enabling the MenuItem because CommandParameter was always null. What I discovered is that CanExecute gets called before PlacementTarget is set and therefore before CommandParamater changes. So in TargetUpdated I force the command to fire CanExecuteChanged. <ContextMenu> <MenuItem...

Pattern / Methodology For Dynamic ContextMenu Based on Collection of Objects

Hello: Background I have a TreeView that follows the MVVM design pattern and supports multiple selection by recording TreeViewItem selections in a List. As it stands there are several types of TreeViewItems available for the user to select. They are: Two Root nodes of type WorldFolder and MyDataFodler which can contain child Folder...

Android: Trouble with using multiple context menu's

What I have here real simple activity with two buttons. When you press each of them it plays a sound. When i press and hold the first button it brings up a context menu asking the user if they want to save the sound as a ringtone or notification. This works perfectly on the first button. The second button's sound plays when pressed. Wh...

Edit original Nautilus context menu

Does anyone know a way to simplify the standard context (right click) menu in Nautilus? I am making a very simplified interface for people who don't use computers very often, and I want to use Nautilus as File Manager. I have added some actions to the context menu using nautilus-action, but I want to remove the standard Copy/Paste/Create...