contextmenu

Disabling the Flash Player default context menu in OpenLaszlo applications

梦想与她 提交于 2020-02-29 03:04:08
问题 When an OpenLaszlo application is deployed using the SWF10/11 runtime, is it possible to completely disable the Flash Player context menu on desktop computers? 回答1: That's only possible starting with Flash Player 11.2. I have done a test run with a modified version of OpenLaszlo based on the flex4.6 branch, adding Flash 11.2+ support to the OpenLaszlo compiler. With the following LZX code I managed to remove the default Flash Player context menu completely: <canvas width="100%" height="800"

The difference between PopupMenuItem Click and MouseOver

跟風遠走 提交于 2020-02-28 07:52:07
问题 When a Menu Item has a sub Menu hovering the mouse expands the sub-menu it fires a click event. Is there any difference between this click event and if the user actually clicks? I'm using a TPopupMenu as dropdown property of a cxButton. EDIT Delphi 2007 回答1: Not sure this will work with D2007; it does in D7. Can you try the following? type THackPopupList = class(TPopupList) private FActuallyClicked: Boolean; protected procedure WndProc(var Message: TMessage); override; public property

Add a separator in the Windows Explorer context menu (not in a submenu)

为君一笑 提交于 2020-02-27 07:23:49
问题 I have found that "CommandFlags"=dword:00000040 will add a separator below an entry, though only to a submenu (under the "subcommands"="" string). Example here. Is there a way to add a separator in the main context menu? The example I am using: [HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\Delete With Rimraf] @="Delete With Rimraf" "CommandFlags"=dword:00000040 This gives no separator. 回答1: This example feature a separator after and before the item, this entry is for VirusTotal Uploader

How to perform a context menu action on a file using python 3

余生颓废 提交于 2020-02-25 09:57:08
问题 How can i do a context menu action on a particular file? I managed to open the explorer and get the list of files through python using pywinauto. On that file I need to perform a context menu action, is it possible through pywinauto? import pywinauto path = "C:\\Users\\Vishnu\\Desktop\\DM-test\\" pywinauto.Application().Start(r'explorer.exe') explorer = pywinauto.Application().Connect(path='explorer.exe') NewWindow = explorer.Window_(top_level_only=True, active_only=True, class_name=

JavaFX ContextMenu accelerator firing from wrong tab

我的未来我决定 提交于 2020-02-24 05:36:46
问题 I have a TabPane with two tabs, each with a TableView which has a context menu. The two context menus have duplicate accelerators, but I expect only the currently selected tab to respond. But what happens is only the last added Tab seems to get the event, even if it's not selected. Below is a complete sample code: package sample; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.*; import javafx.scene.input.KeyCombination; import javafx.stage.Stage;

Cannot read property 'open' of undefined - menu in typescript

喜欢而已 提交于 2020-02-23 07:40:24
问题 I have issue with action in my menu. I using material menu and icons for this project. The wain menu code looks like this: <mat-menu #rootMenu="matMenu" [overlapTrigger]="false"> <ng-template matMenuContent let-element="element"> <div *ngFor='let item of contextMenu' (click)="item.action(element)"> <button *ngIf='!item.seperator' mat-menu-item [disabled]="item.disabled"> <mat-icon> {{item.icon}} </mat-icon> <span> {{item.name}} </span> </button> <mat-divider *ngIf='item.seperator'></mat

How do you make context menu submenus in Windows?

寵の児 提交于 2020-02-22 04:17:49
问题 I've been writing utilities and mapping them to context menus via the Regedit on the Shell key of *, but I can't figure out how to make submenus like some of the more popular utilities do. For example, if I have three scripts to move and rename files to three different folders, right now I have three different context menu entries. I'd prefer to have one called "move and rename..." that expands to those three. 回答1: You can create a submenu to context menus via registry, WIN 7 as seen here

How do you make context menu submenus in Windows?

与世无争的帅哥 提交于 2020-02-22 04:15:11
问题 I've been writing utilities and mapping them to context menus via the Regedit on the Shell key of *, but I can't figure out how to make submenus like some of the more popular utilities do. For example, if I have three scripts to move and rename files to three different folders, right now I have three different context menu entries. I'd prefer to have one called "move and rename..." that expands to those three. 回答1: You can create a submenu to context menus via registry, WIN 7 as seen here

WPF Submenu styling

£可爱£侵袭症+ 提交于 2020-02-17 18:00:31
问题 I have a ContextMenu style and a MenuItem style, both of which are working properly on the top menu. The problem is if I add a submenu to a menu item, then the submenu is not being styled properly. It looks like you can only style the menuitem at this point, and not the actual sub menu so you can't replace the IsMouseOver styling (it just defaults to whatever theme is enabled on windows). I've searched and searched, the closest thing I can find is this forum post on MSDN http://social.msdn

WPF Submenu styling

与世无争的帅哥 提交于 2020-02-17 18:00:23
问题 I have a ContextMenu style and a MenuItem style, both of which are working properly on the top menu. The problem is if I add a submenu to a menu item, then the submenu is not being styled properly. It looks like you can only style the menuitem at this point, and not the actual sub menu so you can't replace the IsMouseOver styling (it just defaults to whatever theme is enabled on windows). I've searched and searched, the closest thing I can find is this forum post on MSDN http://social.msdn