I try to create an extension which add an item into the file menu.
For examples I use an answer from StackOverflow and an article from code.visualstudio.com.
The article has the list:
The global Command Palette - commandPalette
The Explorer context menu - explorer/context
The editor context menu - editor/context
The editor title menu bar - editor/title
The editor title context menu - editor/title/context
The debug callstack view context menu - debug/callstack/context
The SCM title menu - scm/title
SCM resource groups menus - scm/resourceGroup/context
SCM resources menus - scm/resource/context
SCM change title menus - scm/change/title
The View title menu - view/title
The View item menu - view/item/context
The macOS Touch Bar - touchBar
I sucsessfuly add an item to the context menu of the editor (and I have tried all of items from the list) but I do not understand how to add an item to the main menu (for example to the file menu).
P.S. A little investigation. In 2015 some user asked about adding a new item into top level menus. Then (as I understand it) developers added "a new top level menu for extension commands" (instead of ability to add a new item to any top level menu). It was in 2016. Then this top level menu dissappeared.
P.P.S. I have connect the user who asked about new menu item in 2015. He told me that as he know this functionality was not added.
Related
I am dveloping an app in Oracle APEX 5. All of my pages have menu entry on the left-side menu, but the order of the pages in menu is different to the page numbers. Is there a way how to reorder pages in the menu?
Assuming your menu on the left is a standard APEX Universal Theme navigation menu, you do it like this:
Go to Shared Components
Click on Navigation Menu (under Navigation heading)
Click on the menu name
You should now see all the menu options for that menu, which have a sequence number. Either edit the individual options or use Grid Edit and change the sequence numbers to give the order you want.
I have an old VB6 application that uses the Tag property to Enable / Disable the Main Menu items in the (startup) mdiForm. I see where the program reads the Menu Tag Property and compares it to the User's security (a string). If the Tag matches the User's security string then the menu item is made Visible and Enabled.
No where in the VB6 code or in the VB6 Menu Editor do I see how to initially set the Tag property for a menu item. The call to enable the User's menu items is the 5th line of code in the MDIForm_Load() event code, so there is not much else that can run before this call.
Does anybody know how to initially set the Tag property for a main menu drop down items?
Try clicking to select the menu item you are interested in, then the Tag property will be available in the properties window. You can also highlight the form that contains the menus in the project explorer and select the menu from the controls drop down.
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.
hii,I was just learning android i want create menu like this at this image This Menu
i was confused make this,anyody know how i can do it with 4 item like the link above ?
please help me.
sory if my language english bad.
To my knowledge custom menu and options menu can be modified (adding and removing menu items) easily.
If u want your own custom option menu, you may have to simulate by creating layouts.
1) Creative a layout and inflate the layout and show on clicking on the menu button.
2) If u want to occupy whole screen then better use Images and TextViews and create a new activity and launch the activity on clicking the options menu in OnCreateOptionsMenu().
Please find the links below
Custom menu in android
Android: creating a custom menu on the bottom
Is it possible to put a menu in a dialog based application? How?
Yes, it is possible to add menu to the dialog based applications. You can create the menu as a resource and attach the same to the dialog.
If you open the properties for dialog, you can see a Menu as a property for which you can assign an existing Menu ID.
Steps:
Right click on Resource View and
insert a new Menu. (Menu with some ID-- lets say IDR_MENU1 -- is created)
Configure the menu to add required
items in menu and provide the ID,
Caption to the menu items.
Right click on Dialog and open
Properties...
From Menu Combobox, select the ID of
the required menu ( here IDR_MENU1)
You can add a menu resource to a dialog application, but you haven't said which version of Visual Studio you're using so details are hard to provide. You should know that because CDialog isn't derived from CFrameWnd, update routing won't work - you need to read this article for the details.
That article includes instruction for adding the menu if you're using a version of Visual Studio post-VC6, which you probably are - read the "more information" section further down the article for that.
See DLGCBR32 MFC sample in the MSDN.