contextmenu

javafx WebView Method contextMenuEnabled could not be found warning

给你一囗甜甜゛ 提交于 2019-12-24 09:43:23
问题 I get the following warning and stack trace when I traverse to a screen containing a WebView in my javafx application. However the WebView is displayed and works fine. fxml tag <WebView fx:id="webViewId" contextMenuEnabled="false" focusTraversable="false" layoutX="115.0" layoutY="255.0" prefHeight="210.0" prefWidth="280.0" visible="false" /> Stack trace WARNING: Failed to set class javafx.scene.web.WebView.contextMenuEnabled using class javafx.scene.web.WebViewBuilder java.lang

Why doesn't the context menu appear in the center of the screen?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 09:33:04
问题 I read that the context menu should appear centered automatically, but my context menu changes positions based on where I click. This is what happens when I click on the first list item (menu in the lower right corner), and this is what happens for the other items. Here is my code: @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); AdapterView.AdapterContextMenuInfo info = (AdapterView

Windows context menu for multiple files [C++]

天涯浪子 提交于 2019-12-24 07:33:16
问题 I want to create a context menu that support multiple files. I read through SO and understand that either you must use DDE or shell extension (something to do with creating and registering COM object). However all the sourcecodes I found are in C#. I then decided to go with COM object. I found 1 in C++ that uses COM but it's dated 2006, so I just don't know if it's outdated. http://www.codeproject.com/KB/shell/shellextguide1.aspx Can anyone shed me some light on this? And is there any good

TextView text value refreshed onclick

谁都会走 提交于 2019-12-24 07:18:10
问题 I have a gridview in an activity where I am trying to display a contextual menu each time a grid element is tapped. I want this contextual menu to display a dynamic value in a textview (the position of the tapped grid element). I am creating my own contextual menu because I don't want an alert or the default android contextmenu. Also I am using SDKs: <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" /> Here is my java.class for the gridview public class Grid_Items extends

Actionscript 3 ContextMenu closed event?

我怕爱的太早我们不能终老 提交于 2019-12-24 07:10:14
问题 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: Good question. That would make a nice feature request, an ContextMenuEvent.MENU_CLOSED event :) I think I have half you're answer. Here's my idea: var myContextMenu:ContextMenu = new ContextMenu(); var menuLabel:String = "Custom Item"; var rightClicking:Boolean;

C# WPF Context menu item click event returns null

感情迁移 提交于 2019-12-24 06:31:24
问题 I'm using WPF with C#. I have a grid of buttons and I've assigned a context menu to each button if it's right-clicked. Right-clicking the buttons works fine and the context menu shows up but clicking the menu items gives a null sender. What could be wrong? Here is the relevant code embedded into the Window XAML code: <Window.Resources> <ContextMenu x:Key="cmButton"> <MenuItem Header="Copy" Click="Copy_Click" /> <MenuItem Header="Cut" /> <Separator /> <MenuItem Header="Paste" Click="Paste

WPF: When Alt key is pressed, my ContextMenu won't open

淺唱寂寞╮ 提交于 2019-12-24 06:28:11
问题 In my WPF app, when a ContextMenu is opening, I want to tweak its menu items depending on whether or not the Alt key is pressed. I've got the logic working. XAML: <my:Control ContextMenuOpening="MyContextMenu_Opening" /> Code: private void MyContextMenu_Opening(object sender, RoutedEventArgs args) { bool isAltDown = Keyboard.IsKeyDown(Key.LeftAlt); /* tweak menu items here */ } My problem is that when the Alt key is pressed, the context menu opens and then immediately closes (I can see in the

WiX Add Registry Key to Customize Context Menu

痴心易碎 提交于 2019-12-24 03:51:21
问题 I want to create an .msi installer that will add a cascading context menu when I right-click my mouse on my desktop. First, I tried doing this using the following script, and this works fine: [HKEY_CLASSES_ROOT\DesktopBackground\Shell\MyApp] "MUIVerb"="My Application" "SubCommands"="app1;app2" "Position"=- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\app1] @="Run App1" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer

How to copy text from different Labels using only one context menu

房东的猫 提交于 2019-12-24 02:56:08
问题 I have a Windows Form program for contact list. I already have a context menu used for copy and pasting from the DataGridView. However, I want to be able to right click a Label and select copy from a context menu to copy the data from that ONE Label. I have 10 different Labels, I do NOT want all of them, just the one that I right clicked on to select copy. I know that using Clipboard.SetText(label1.text) will let me select that specific Label, but I do not what to create 10 context Labels

Copy Command On ContextMenu over TextBlock inside DataGridTemplateColumn

主宰稳场 提交于 2019-12-24 02:44:21
问题 Thought of asking because never done this before on a TextBlock. I Am not able to copy the content of the DataGridTemplateColumn where it has a TextBlock in that and i have assigned a context menu to that. The copied content is blank. When I tried in MS word is Blank Cell. My Template Column and ContextMenu are as below. I Tried using TextBox But it work when the textbox is enabled and in-spite of grid column is readonly. It allows editing and when we disable it won't copy the text.