How to disable a whole drop-down menu on Electron? - menu

I am developing a desktop application with Electron. I have added some items to the menu bar.
Sometimes I open some modal forms with bootstrap in the program. When these popups are open I want to disable the menu items.
I have made some research and some people says that the menu bar could be removed. But I do not want to create my own HTML menu.
And there is another option, maybe the best approach. Disabling all the options of each dropdown menu. Each menuitem has an enabled attribute, so it can be changed in runtime.
Is there way to avoid dropping down the menu and disable the drop-down menu?

Dynamic menus are not currently supported. This has something to do with the fact that the menus in Electron use the Chromium menu code which has no dynamic features.
When your File menu is empty, you could replace the entire menu with one that does not have the File menu in it?

Related

How do I define the items in the menu row or even better have the default format menu item appear in the toolbar?

I changed menu to this:
menubar: 'format table tools help'
But what appears in the menu in my editor is just format. Table, tools, and help don't appear. Why is that so?
Also, if I want to get rid of the menubar I know I need to set
menubar: false
but is there a way of getting that nice format item from the menubar into the toolbar?
Thanks.
In order for the item to appear in the menu you also need to load the plugin itself. If (for example) you don't load the help plugin TinyMCE won't show a Help menu because the underlying functionality is not loaded.
is there a way of getting that nice format item from the menubar into
the toolbar?
The short answer is "no". A menu item and a toolbar item are different. That being said, many of the capabilities exposed via the Menubar can also be exposed via the Toolbar.
Here is an example of loading both the Help menu option as well as the toolbar button.
https://fiddle.tiny.cloud/S5haab

Disable or hide "View Library" menu item

When clicking the "File" menu from the Spotfire Webplayer, there is a menu item called "View Library", is it possible to disable the item or just hide it?
there is currently no way to disable this menu item.
in theory you could use the set-public-address command via the config command line interface and change the URL to some other location, but if that isn't a valid URL it could break things. attempt at your own risk and in a dev environment.

How to remove a top level menu in VS2012?

I'd like to work in a minimalist manner. So I am trying to remove some of the top level menus that I do not use.
I don't see anything obvious in the Customize window. Am I missing something simple?
You're very close. Go back to Customize (right-click in the menu or toolbar areas), then choose the "Commands" tab instead of the default "Toolbars".
With the "Menu Bar" option selected, you can delete, move, or create high-level menu items, or dive into each menu and customize items. If you make a mistake, click Reset All.
For minimalist coding, I'm also a fan of Full Screen mode (VIEW -> Full Screen or Shift+Alt+Enter).

Advanced Menu 1.4.1 Menu Settings?

I am using Orchard CMS 1.4 with the Advanced Menu 1.4.1 module. When I enable the module and create a new menu and menu items, I do not see the menu displayed on my site. Also, I do not see a way to choose which menu is displayed if I create more than one menu. Where in the settings can I choose which menu is displayed? Thanks!
You have to add a Menu Widget to some zone (eg. the Navigation zone) in order to display a menu. When adding that widget you can choose which menu it should display.

How to add custimized context menu item on right click in browser window?

Here I want to add my custom menu option i.e. ColorZilla, Aptana Studio on web browser right click
You can only do this with a browser plugin. Each browser will have its own syntax for plugins and specifically adding context menu items.
Aleks G. is right you cannot do that directly within the browser.
I don't know if it can help you or if it is what you are looking for but, within the browser you can handle the right click interaction in order to display your own custom menu ( not a particular menu item but the full menu ) ... meaning the default browser menu won't get displayed at all.
In case you are interested, you can have a small sample here

Resources