contextmenu

XAML Context Menu not closing

I've got a "popup" context menu on a list box, and there are two behaviors that would seem "out-of-the-box" but I am having a tough time getting the XAML ContextMenu to behave the way I would expect... One is that, when I pick a sub-menu (e.g. "One" or "Two"), the initial menu continues to stay open (e.g. "Menu" does not go away once I'...

right click context menu for datagrid

I have a datagrid in a .NET winform app. I would like to rightclick on a row and have a menu pop up. Then i would like to select things such as copy, validate, etc How do i make A) a menu pop up B) find which row was right clicked. I know i could use selectedIndex but i should be able to right click without changing what is selected? ri...

is there any rule about context menu nesting best practices . .

i started working on an app and when you right click on a grid, you get about 14 menu items. i thought it was cleaner to start to nest some of the menus as there were clean "grouping" of menu items but it caused a bit of debate. is there some guideline or best UI practice on context menus? ...

Adding a right click / context menu to listbox items in C#

okay, so i have listBox1, and its populated with items, id like to know how to 1. when you rightclick in the listbox, that the rightclicked item will be selected, 2. a rightclick menu will be displayed with several items.. 3. when you click on any of the items, a corresponding void will be triggered.. thanks in advance for any help,...

Browser ContextMenu event

Does anyone have any insight as to the future browser support of the right-click event on the document object? I see that Opera (2.3% of users) currently doesn't support it. Thanks, Bill ...

Tab Context Menu for WeifenLuo.WinFormsUI.Docking

Hi, I'm using the "WeifenLuo.WinFormsUI.Docking" control. I need to show a context menu by clicking on a document tab. Atm I just can show a context menu at the document itself or for the menustrip - but I didn't found a way to bind a menu to the tab. Does anyone have an idea? ...

Why context menu swallow my click event?

I have a user control, which handles mouse click event, when mouse clicked, the control highlight an contained item. it worked smoothly until i attach a context menu to it-the right mouse click opens the context menu, but the item that is supposed to be highlighted by right click doesn't work as usual. So the right-click event is swallo...

On "menu key" press, ContextMenuStrip does not pop-up at the mouse cursor position

In a Windows Forms, .NET 2.0 application, I'm using a ContextMenuStrip control attached to the ContextMenuStrip property of a form. When I right-click the form, the ContextMenuStrip opens at the mouse cursor position. However, when I press the "menu key" on my keyboard, the ContextMenuStrip does not open at the mouse cursor position, it...

Popups in WPF immediately lose focus and close

Hello, I've been beating my head against a WPF Popup issue, and am hoping someone can help me:) The outline goes like this: Our app stores a list of UIObjects - these represent elements that are displayed in a viewport 3d (via a member UIRenderObject, which is just a flat, square mesh with a bitmap on it) and in a treeview (via a membe...

Does iPhone provide any API for inserting menu selections into e-mail, SMS and Addressbook context menus?

The Blackberry APIs allow one to insert custom menu items (and corresponding event handlers) into their standard email, SMS and Address book context menus. Is there any supported way to do this with iPhone APIs? Thanks. ...

How do you show the Finder context menu from a Cocoa application?

I have a file listing in my application and I would like to allow people to right-click on an item and show the same contextual menu as Finder does. Is this possible? The same functionallity but for Windows Explorer is discussed in http://stackoverflow.com/questions/451287/how-do-you-show-the-windows-explorer-context-menu-from-a-c-appl...

Is this a IE8 or jQuery's bug?

<option> doesn't respond click/contextmenu events in IE8? Here is all the code to verify it locally: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-type" content="...

Right Click Context Menu in IE - Add new items

Hello, Adding items to the registry item HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\ I can successfully create new options in the Internet Explorer right click menu. Trouble is, I only want to show the item if the user right clicks on a link. In other words it would appear at the same time as the option "Open in ...

How can I write my own ContextMenu? C#

I feel quite limited by the default ContextMenuStrip, as it only can contain buttons, and no Controls. I was wondering that for a long time, and I already tried it, using forms, but it never really worked out. I already have I idea on how to set the whole thing up, with events and items. The only problem I have is the paint method. When...

Reusing a ContextMenu for multiple controls in WPF.

I have three tree view controls which house different (but mostly similar data), as a result the actions that can be taken at each level is the same as far as the user is concerned, but different in their type (which is something I have to worry about as the developer). What I would like to do is reuse this context menu and pass in a typ...

C# system tray context menu showing below the icon

I have a Windows Application that I have created that utilizes the system tray to "hold" the application when it is open and running behind the scenes. However, the popup context menu that I created for it (used Infragistics UltraToolbarsManager), the menu appears but below the icon cutting off most of the menu. How do I rectify this pr...

Change a Flash AS3 context menu that is already personalized -- can't find it to change???

Is there any way to change a context menu that already has been personalized. I have an small application that I purchased to learn with and also to save some time. When I right click the context menu appears with the other person's information in it. I want to change that information if it is possible to do so. I tried var my_me...

How To update contextMenu after it shows in flex

The thing is I load context menu items dynamically and it takes time to load, so context menu appears with default values the first time. But if you right-click again, yo see the loaded values. Is there a way to refresh items while the menu is still opened? or someway to reload it? ...

how to add message map to dynamic menu item in MFC

Hi, I writing a MFC which has a listview control. When the user right clicks any item , I am generating a dynamic menu item with that text that is selected in listview. Everything is displaying properly, but I do not know how to add a message map to that dynamic menu item. Any help? void CMyListDlg::OnRclickList(NMHDR* pNMHDR, LRESUL...

How Can I get muitiple files selected to the same application launch from a "right click" context menu (windows explorer)

I am able to get a shell registry type context menu function to work , see below . But is there a way to tell windows to send multiple files selected to the same application , perhaps instead of %1 or %L some other parameter . What happens now is that it launches the associated application for each file in the list . Windows Registry E...