How do you add a button to the "navigation bar" in IntelliJ? - intellij-idea

By default, in IntelliJ, the main toolbar is hidden. When it is hidden, there are essential buttons that are shown in the navigation bar. I don't need the full toolbar, but it would be nice to be able to add a single button to the navigation bar.
How do you add a button to the navigation bar?

You can customize any menu or toolbar in IDEA in settings by going to:
Settings-> Appearance and Behavior -> Menus and Toolbars
The item you are looking for is called
Navigation Bar Toolbar

Related

How add option of "more" in navigation to bar?

I have an app that has 6 menu options, so I need a button on the tab navigation to bar that opens as a drop down so I don't have too many buttons on the tab navigation .
It's possible?
I tried to do it with Drawer, but the navigation tab disappears when I open the other pages. Can anyone help?

How do I move the toolbar in IntelliJ?

How can I move the toolbar in IntelliJ from the Top Right corner to the Top Left?
click on Main Menu | View | Toolbar
I'm writing this answer because I wanted the opposite. One day IntelliJ suddenly started aligning the buttons to the left.
There are at least two toolbars in IntelliJ:
The Toolbar which is aligned to the left,
and the Navigation bar which is aligned to the right.
The buttons of both toolbars can be customized independently.
Therefore, in order to show the toolbar one side or the other, press CTRL + SHIFT + A and then type either View Toolbar or View Navigation bar.
Previous answers didn't work for me because in mac CTRL + SHIFT + A does nothing and View -> Toolbar doesn't exist, actually it's View -> Appearance -> Toolbar.
In mac, for Android Studio 4.2 (it changed the toolbars/navigation when updating) you can right click the Navigation bar (the one that shows the current file location at the top left) and hide it, untick "Show Navigation bar".
Then, toggle the Toolbar, View -> Appearance -> Toolbar on and off, this will show the icons to the left, as in my previous instance of Android Studio.
Now you can re-enable the Navigation bar and it will show below the Toolbar.

UIBarButtonItem on UINavigationBar in UITabBarController

I'm new here. Sorry for may English.
I work on an iPhone application, which has an Tab Bar Controller (within an Navigation Controller). The Tab Bar Controller has four tabs and an Navigation Bar with default Back Button. I will set an other Bar Button Item on this Navigation Bar (on Tab Bar Controller). That is easy with drag and drop on storyboard, but I can't set an action for this new bar button item.
I know that I should set up a delegate for my UITabBarController, but I don't know how.
Can anyone help?
Thanks!
You usually create IBOutlets/IBActions by cntrl+dragging outlet from the story board to your code.Try to do the following:
Don't forget to switch to assistant editor to split your screen
Click on this button to switch to assistant editor

Cocoa: hide NavigationBar

I'm using UIXOverlayController to show custom popup in my application.
Popup has some buttons, one of them is "Send SMS" which uses MFMessageComposeViewController.
When i click "Send SMS" button, sms composer appears, but without it's TOP bar (where "Cancel" button is located).
Suppose, that my application's Navigation Bar overlaps SMS composer Bar and i need to bring sms top bar to front.
I also tried to hide navigation bar when popup window is active, but there is no method "self.navigationBar" in overlayController ".m" file. And i think that all work with hide/show navbar should been done in overlaycontroller.
Any suggestions? Thanks!
Have you tried adding self.navigationBar.hidden = YES;? That should hide the navigation bar.

Making the Name of the App appear in the Menubar (top-left corner) when the App is LSUIElement

How would I make the name of the app appear here ( like with a normal app )…
alt text http://snapplr.com/snap/6sgc
… when the app is an LSUIElement.
My Problem is that when the App is LSUIElement the name is not by default displayed in the menu bar like an normal app. Basically all I want LSUIElement to do is to hide the dock icon not the name in the menu bar.
For those who's native language isn't English, when I say 'App' i mean 'Application'.
Thanks.
Don't do this; it's not what users expect. A dock icon and menu bar go together. If you want to get both a dock icon and menu bar icon in your UIElement app, use TransformProcessType.
If you really must, you can draw your own menu bar window (if you use the appropriate window level it'll appear over the top of the existing menu bar).