Все вопросы: [contextmenu]

120 вопросов

4
голосов
1ответов
1846 просмотров

WPF ListBox drag & drop interferes with ContextMenu?

I'm implementing drag & drop from a ListBox, but I'm seeing some strange behaviour with a ContextMenu elsewhere in the window. If you open the context menu and then start a drag from the ListBox, the context menu closes but won't open again until after you perform another drag. Does this ma...

1
голосов
3ответов
2012 просмотров

Folder right click menu(Only Folder)

See this.What should i use instead of "Jpegfile" in the sample to represent folders? I don't want Drives,Recyclebin,Computer(My computer in XP),My Documents(in xp),etc. to be included too. I want my right click menu entry to be added to folders' right click menu only. Thanks and Regards. Please n...

0
голосов
1ответов
928 просмотров

Add an entry to recycle bin right click menu using C#

I'm looking for a C# code to add my own entry to recycle bin right click menu. I've already seen this. What should i do to represent recycle bin.(Sample is provided for jpeg files)

0
голосов
2ответов
1880 просмотров

Problems displaying a ContextMenu during the KeyDown event

I'm using the following code to display a context menu on my form when someone presses "Alt-A": private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.Alt && e.KeyCode == Keys.A) { ContextMenuStrip menu = new ContextMenuStrip(); ToolStripMenuItem item ...

0
голосов
2ответов
1468 просмотров

How to get system tray functionality WITHOUT using NotifyIcon.ContextMenu?

I'm trying to get my application to display a popup context menu when a user right-clicks on my notify icon in the system tray... but there's a twist. I'm aware that the NotifyIcon class I'm using to get the icon in the system tray has a ContextMenu property. I don't want to use that to get a r...

2
голосов
5ответов
5791 просмотров

List box context menu

How do I add a context menu in a list box in MFC? I don't see any WM_CONTEXTMENU handler in list box's properties. Any ideas? EDIT: I followed this tutorial MFC List Control: How to use a context menu in a list control?. The tutorial says to derive my own class from CListBox which I did, but now...

0
голосов
1ответов
590 просмотров

catch menu positon, and edit menu after creation

I'm working with the dijit.Menu widget, but I don't know how to do some things: How can I catch te position of the top left corner of a dijit context menu? How can I know witch dome node belongs to the dijit menu, (to do that I write into the menu the DOM node id and I find it with dojo.byId, b...

1
голосов
4ответов
3836 просмотров

cocoa + context sensitive menu on NSTableView with multiple rows selected

i am having a problem displaying context sensitive menu on control click on a tableview when multiple rows are selected. Its working fine when a single row is selected and then control clicked on it. The way i am implementing this is shown below: -(void)doSingleClick { NSLog(@"single cl...

6
голосов
3ответов
3742 просмотров

Unable to set System.Windows.Controls.MenuItem.Icon thru a setter

Hi I am trying to have a MenuItem.Icon set thru a style setter: <Style x:Key="MenuItem_Delete" TargetType="MenuItem" BasedOn="{StaticResource {x:Type MenuItem}}"> <Setter Property="Header" Value="_Delete"/> <Setter Property="MenuItem.Icon"> <Setter.Va...

0
голосов
1ответов
202 просмотров

Hyperlinks in contextMenues (wpf, partial trust) didn't work

I got a problem. I have a contextmenu and it's items are hyperlinks. If I click on those nothing happened. They are OK, because if I add them to a grid they work fine. Anybody an idea how to solve this? I am in an partialTrust environment ... so Process.start is not running.

0
голосов
3ответов
7602 просмотров

hiding the context menu at onblur event in jquery

Does any one tried to successfully hide the context menu at blur event? What I want to do is to hide the customized right click menu when the mouse is not positioned inside the context menu div. This uses the jquery context menu plugin.

0
голосов
2ответов
1049 просмотров

running a code before showing context menu during customized right click in jquery

I used context menu plugin and was able to make if functional on the page I currently developing. At right click, I want to run a code (such as to highlight a selected row or column) before showing the context menu. Where can I insert the code. I used the plugin on this link. http://www.trendskit...

1
голосов
1ответов
206 просмотров

Internet Explorer context menu context bits

I am trying to add two new entries to the context menu, one for images and one for anchors. I am using 0x2 for images 0x20 for anchors they are displayed correctly but when there is an image with a link only the image link is showed they do different things so i would like both items to show up?

2
голосов
2ответов
4545 просмотров

Binding a context menu to a ListBox's Items collection

I'm trying to create a context menu for a list box which displays elements in the context menu from the list box. I am able to accomplish this by using the following XAML: <Window.Resources> <ContextMenu x:Key="contextMenu" ItemsSource="{Binding Items, ...

0
голосов
2ответов
4488 просмотров

C# WinForms - TreeView, Context Menu

Suppose I am using a context menu to add child nodes to a treeview control. (1) I am right-clicking on the node (2)context menu pop up (3)then I click "Add" menu item (4)a dialogBox opens up (5) I input the name in that DialogBox and press OK (6) A new Node is created. How can I get the re...

23
голосов
3ответов
39041 просмотров

Context Menu for XAML Treeviewitem (Distinguished by different attributes)

In XAML, how do you define a context menu for treeviewitems that are distinguished by different attributes?

6
голосов
1ответов
1314 просмотров

How to set ContextMenu of a bound item?

I am trying to achieve the following: <Style TargetType="ListBoxItem"> <Setter Property="ContextMenu"> <Setter.Value> <ContextMenu> <MenuItem Name="mnuEdit" Header="_Edit" Click="MenuItem_Click" /> </ContextMenu...

2
голосов
1ответов
1134 просмотров

How can I display different ContextMenus in WPF ListView GridView?

I have a ListView GridView with ListViewItems that represent different categories of items. I'd like to display a different ContextMenu for each category of item. I was hoping to do this using DataTemplates but I'm struggling. My TreeView has a DataTemplate per category and I can see how I can...

0
голосов
2ответов
933 просмотров

Get visual underlying ItemTemplate of an ItemsControl in ContextMenu.MenuItem.Click event handler?

First take a look at my code: <ListBox ItemsSource="{Binding}" SelectionMode="Multiple" ItemTemplate="{StaticResource ContactTemplate}"> <ListBox.ContextMenu> <ContextMenu> <MenuItem Name="mnuEdit" Header="_Edit" Click="MenuItem_Click" /> ...

1
голосов
1ответов
1119 просмотров

Actionscript 3 ContextMenu closed event?

There is an event which is dispatched when the context menu (right click menu) in actionscript for flash has been opened: ContextMenuEvent.MENU_SELECT Now, is there an event which is dispatched when the menu has been closed?

1
голосов
1ответов
4226 просмотров

ContextMenu Binding Source within a DataGrid using MVVM

I've got a datagrid column as below: <toolkit:DataGridTemplateColumn> <toolkit:DataGridTemplateColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding Path=LabelName}" Background="{Bind...

104
голосов
8ответов
73074 просмотров

How to add a separator to a WinForms ContextMenu?

Inside my control, I have: ContextMenu = new ContextMenu(); ContextMenu.MenuItems.Add(new MenuItem("&Add Item", onAddSpeaker)); ContextMenu.MenuItems.Add(new MenuItem("&Edit Item", onEditSpeaker)); ContextMenu.MenuItems.Add(new MenuItem("&Delete Item", onDeleteSpeaker)); ContextMenu....

1
голосов
3ответов
948 просмотров

Missing Registry entries for the Context Menu

My Vista Home Basic SP2 machine misses the relevant Registry values, described under Page 171 of the tutorial (latest and relevent edition) The registry keys which hold the information on which context menus to show are HKEY_CURRENT_USER\Software\TortoiseSVN\ContextMenuEntriesMaskLow and ...

3
голосов
1ответов
4832 просмотров

Check value to disable/enable Context Menu Item (android)

In my application has a ListView. When long press on item the "Context Menu" will appear. I want to check the data ID, then set disable/enable to my Context Menu "Items". I can not find out the function like getMenuInfo() or something like this. @Override public void onCreateContextMenu(Context...

13
голосов
3ответов
15065 просмотров

context menu parent?

Hi I added a context menu on label (c#, winforms). my context menu having 3 child items and i want to display label text when i click on any one of context menu items. thanks in advance

2
голосов
1ответов
2125 просмотров

Windows Shell Context Menu option

I need to create an option for all files that would run a batch file located in Windows directory or any other directory. The batch file will basically delete the files and will also delete it from another server. I have the batch file working just need the context menu option.

3
голосов
4ответов
2606 просмотров

Blackberry trackball click, instead of responding to event, context menu is shown why?

I'm running into the following scenario on some devices: when the use clicks on field and expects an response, instead of properly responding to that click event, the device shows the context menu at the bottom center of the screen. navigationUnclick and trackwheelUnclick From what I've read, I ...

0
голосов
1ответов
1101 просмотров

ContextMenu not displaying, and I don't know why

I'm writing a C# (.NET 3.5) app with a usercontrol that inherits from DataGridView. When the user right-clicks a column header, I want to display a context menu. I've actually got this working find on 2 forms in my app. I'm stumped because the ContextMenu won't show on the same control on a thir...

1
голосов
2ответов
878 просмотров

C# Contextmenu jumping if populated on Popup event

I have a MenuItem that contains all files in a specific folder. The menuitem is populated on its own Popup event (using System.IO.Directory.GetFiles), but if it is too close to the lower right corner of the screen (or so it seems), it will jump higher up on the screen while being populated. If ...

18
голосов
3ответов
22423 просмотров

Setting a WPF ContextMenu's PlacementTarget property in XAML?

<Button Name="btnFoo" Content="Foo" > <Button.ContextMenu Placement="Bottom" PlacementTarget="btnFoo"> <MenuItem Header="Bar" /> </Button.ContextMenu> </Button> gives me a runtime error 'UIElement' type does not have a public TypeConverter class I ...