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...
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...
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!
...
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?
...
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
...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...