contextmenu

DelegateCommand is not invoked in context menu

依然范特西╮ 提交于 2019-12-02 05:38:33
I can`t seem to get this right click popup menu to work. <TreeView Name="NavigationPanel" ItemsSource="{Binding NavigationList}" /> <Style TargetType="{x:Type TreeViewItem}" > <Setter Property="ContextMenu"> <Setter.Value> <ContextMenu DataContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TreeView}}, Path=DataContext}"> <MenuItem Header="Delete" Command="{Binding Path=CommandPopupClick}" CommandParameter="{Binding Path=SelectedItem}"/> <Separator /> <MenuItem Header="Properties" Command="{Binding Path=CommandPopupClick}" CommandParameter="{Binding Path

How to get/retrieve context menu value after right click with Javascript?

北战南征 提交于 2019-12-02 05:15:22
I can't find a related question to give me an idea about how to do this. I've seen some topics about how to know if the right-click button was clicked but I'd like to be able to capture the value that's selected on a context menu after right click. Any idea how I could achieve it? In a browser, you can: a) ignore the right click and let the browser itself handle it (which usually means a context menu will be shown) XOR b) handle the right click yourself, which means that the browser won't show its context menu. You can't have both a) and b), they're mutually exclusive. If you want a right

VB.Net Get The Control That Is Used To Show The Contextmenu Strip

安稳与你 提交于 2019-12-02 04:58:07
问题 i am attaching a single context menu to multiple text box. so, i need to get the control name/reference that used to show the context menu. below is the sample image of my context menu: Below is the code for green marked "paste" item click event: Dim objTSMI As ToolStripMenuItem Dim objCMS As ContextMenuStrip Dim objTxtBox As System.Windows.Forms.TextBox objTSMI = CType(sender, ToolStripMenuItem) objCMS = CType(objTSMI.Owner, ContextMenuStrip) objTxtBox = CType(objCMS.SourceControl, System

Android custom dialler on tapping phone number links

人走茶凉 提交于 2019-12-02 04:22:25
I have to implement custom dialler application. Well it will not make regular phone call, instead it will connect to some service to estabilish VoIP connection. That is simple part I think I can handle it. But the other part is a bit tricky for me. I want to "register" my dialler somehow in the system to have it in context menu when you click on a phone number link in an e-mail for example. Now, when you click the number, default dialler appears. I want context menu to be shown where you can select if you want to use phone or my dialler. Is it possible? Can someone provide me some more tips?

How to show ContextMenu long click on listview android?

坚强是说给别人听的谎言 提交于 2019-12-02 03:00:19
问题 here is a list of contact in ListView , i want when user longClick on any contacts then ContextMenu popup should be show "call"and "send sms" i write code for ContextMenu but still ContextMenu not showing on longClick please tell me what is missing in my code. here is MainaAtivity class public class MainActivity extends AppCompatActivity { ListView listView; Button sync; ProgressDialog progressDialog; String name, phone; ArrayList<Contact_list> listitem; @Override protected void onCreate

How to pass variables on long press on ListView?

本小妞迷上赌 提交于 2019-12-02 02:55:35
I would have listview and a lot of items inside. I want that user can long press on item and set it as Favorite. To do that, I need to get DB id to this menu on long press. I have the following code @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); menu.setHeaderTitle("Favorite"); menu.add(0, REMOVE_TODO, Menu.NONE, R.string.favorit_add); } It works just fine... But what I want to do is to get text and database id of selected item. So insetead of "Favorite" I would like to write Favorite:

contextMenu breaking FullCalendar event dragging

跟風遠走 提交于 2019-12-02 02:37:52
问题 So I recently added a context menu to the events in my FullCalendar using jQuery contextMenu (http://abeautifulsite.net/blog/2008/09/jquery-context-menu-plugin/). It works beautifully, except that my dragging/dropping ability stopped working properly, when you drag an event and let go over another date the event date isn't changed, and it redirects to the event's url. I did some checking, and realized that eventDrop, eventDragStart, and eventClick all aren't being fired. If I comment out the

Which event is called when a user click on the disabled item in context menu?

妖精的绣舞 提交于 2019-12-02 02:28:44
I have button, which displays a Context menu. In the menu are few items (some of them are disabled - setEnabled(false)). Which event is called when a user click on the disabled item? It's not onContextItemSelected nor onContextMenuClosed. But the menu is closed after the click. Thanks for your help. After consultation with my teacher, I've solved the problem. You can check the focus of your window, and then decide if the context menu was closed or not. So you have to: Use the code below. Call onPrepareContextMenu() method when you create the context menu. The code: public class MyActivity

open program once with multiple files as arguments from explorer

六眼飞鱼酱① 提交于 2019-12-02 02:12:49
问题 I have a program that works when, a file is opened with it using the right click menu in explorer. But if I select multiple files and then right click and open with my program then it opens multiple instances of my program, instead of just passing the multiple files as arguments to a single instance. The program is written in vb.net but is not a windows form, it is just a module, so I can to tick the Single instance option in the properties in Visual Studio. So how do I open multiple files

Which event is called when a user click on the disabled item in context menu?

风流意气都作罢 提交于 2019-12-02 02:03:10
问题 I have button, which displays a Context menu. In the menu are few items (some of them are disabled - setEnabled(false)). Which event is called when a user click on the disabled item? It's not onContextItemSelected nor onContextMenuClosed. But the menu is closed after the click. Thanks for your help. 回答1: After consultation with my teacher, I've solved the problem. You can check the focus of your window, and then decide if the context menu was closed or not. So you have to: Use the code below.