How to remove a top level menu in VS2012? - visual-studio-2012

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).

Related

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

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?

In gnome 3, how to let a window get focus but not on the top?

Windows get focus is meaning that you can type in something in that. But at the same time, I hope that windows not to cover some others. How to config gnome 3 to implement that?
Leaving a window in focus though not on top of the screen is quite easy in Gnome. It is possible to give each and every window a special attribut which will shift their priority on the screen.
First, right click the titlebar of the application which should always be on top. A small menu should pop up. Now just select the option "Always on top" and you are done. This option may be parsed to multiple windows. Independently of which window is in focus, the application with this attribute will always cover it.
By the way the so called "Titlebar Actions" can be configured through the gnome-tweak-tool. Under the "Windows" tab you may define what should happen on a double click, a middle click or a secondary/right-mouse click.

System wide right click context hook

**Hello..
i am creating English To Gujarati Dictionary WinForm Application.
I need to set a system wide hook to the right click context menu on for text selection.
it means when this application is running,and if user selects word from any program and right click on it gujarati meaning of that word should be displayed as menu item.
How to do this?
or any other options like Registery Programming,shell extentions etc...?
i have to do this,even if you say its not possible.
so please help me.**
Hooking the mouse activity is the easy part. See SetWindowsHookEx, and lots of questions regarding hooking in SO. This way, you can tell when the mouse is right-clicked.
Getting the selected text is the harder part. See WindowFromPoint, for starters. You'd have to recognize the control, and if appropriate get the selected text from it. This will not always be possible using simple Win32 functions, if the control is complex.
Adding the translation to the right-click menu is probably the impossible part. Adding stuff to explorer context menu is not a problem, because explorer provides that possibility. But various applications will have various right-click menus, without a way to extend them. They might not even use Win32 for the menus, for whatever reason. A better option, IMO, would be one of the following:
Forget about changing the right-click menu. Open a window next to the point of selection with whatever content you want, and let the application show its own right-click menu.
If the user right-clicks while, say, pressing shift, show your own right-click menu, and don't pass the message to the application. So the user will see only one menu, which is yours. The user must of course be aware of this combination.

How to disable or apply custom menu to GTK (PyGTK) Notebook pages?

I am trying to apply custom menu to tab pages on my notebook control. I need to be able to select certain specific action for the entire page and i figured the tab label would be the best place to start.
So, i created a EventBox, applied Label as its child, and bound event callbacks to button-pressed-event and it... works.. kindof.
What i get is two menus: one is the one I create, and on top of it - the one created by GTK Notebook. to select something from my custom menu i need to escape the notebook menu first, and i certainly don't like it.
so the question is: how do I disable gtk notebook menus? or how can i set my own, custom menu, with my own, custom callbacks? I don't want to list all the available tab pages in the menu - it's introducing too much noise, so adding menu labels to the existing menu is not really the way to go.
thanks bunches
GtkNotebook should only show the tab selector if enable-popup is true. It defaults to false, so you've probably enabled it by mistake.

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