Questions tagged [menubar]

A menu bar is a region of a screen or application interface where drop down menus are displayed

a horizontal bar, typically located at the top of the screen below the title bar, containing drop-down menus. MenuBar Looks like

1020 questions
8
votes
3 answers

Menu Bar App Never Becomes Reactivated

I'm building a Mac app that only sits in the menu bar with no dock item and no key window and no main menu (it's LSUIElement in the info.plist is set to YES). When I first launch the app, applicationDidBecomeActive: is called, as I expect. However,…
Ash Furrow
  • 12,391
  • 3
  • 57
  • 92
8
votes
2 answers

Creating an NSStatusItem/Menubar App in Java

I'm trying to emulate Objective C's NSStatusItem functionality in Java. That is, I'm trying to write a Java app that will sit in the Mac's menubar, like this. Here's a link to Apple's documentation on StatusBar. Any way to do this in Java?
user73171
  • 95
  • 1
  • 5
7
votes
2 answers

How to handle lifecycle events for MenuBarExtra in macOS 13 SwiftUI

I'm trying to create a simple menu bar extra in Swift UI using the new MenuBarExtra. I would like the button text in the popover to update dynamically every time the menu is open. I'm creating the MenuBarExtra like this. …
Lukas Valine
  • 183
  • 9
7
votes
3 answers

Mac OS X, make a window go over menu bar

Is it possible to make a window to go over the menu bar, without going in fullscreen? Thanks in Advance!
mxg
  • 20,946
  • 12
  • 59
  • 80
7
votes
2 answers

Cross-platform Python GUI suitable for taskbar (Win) and menubar (mac) functionality?

I am fairly new to Python programming, and completely new to cross-platform GUI building (only previous GUI experience is through visual basic and Java). I've written some python code to screen-scrape data from a website, and now I want to build a…
Rabarberski
  • 23,854
  • 21
  • 74
  • 96
7
votes
1 answer

How to make Menu.add_command() work in tkinter on the Mac?

If I create a tkinter menu on OS X and try to add a menu button to it with add_comand(), nothing shows up in the menu. If the code below is run on Ubuntu, I get a menubar with two commands labeled "Red" and "Blue" that change the background color…
saulspatz
  • 5,011
  • 5
  • 36
  • 47
7
votes
4 answers

PyQt MenuBar Mac OSX Snow Leopard

I am attempting to add an item to the application menu-bar of a simple PyQt example. However, the following code does not seem to alter the menu-bar at all. The only item in the menu is "Python". Below is the bulk of the code, minus imports and…
JeremyFromEarth
  • 14,344
  • 4
  • 33
  • 47
7
votes
4 answers

Why do my image background disappear on float: left?

I want to create a navbar with images on each end to make it purty. So, I created the HTML and CSS below and it worked great. My menu items are in a ul/li list. When I style the list to put the items all on one line, the images on the ends…
user250417
7
votes
2 answers

On Mac, how to create a drag & drop app for a python script where the script name rather than Python shows in the MenuBar (etc.)?

I have a Python script that I would like to start either by clicking on something or by dropping a file I want to open on that thing. I also want to avoid the annoying mac Python issue that the name of the interpreter (Python) rather than the name…
bht
  • 801
  • 8
  • 18
7
votes
1 answer

Objective-C: get menu information from external application

I'm trying to write a Mac OS menu extra application that displays a contextual menu containing the currently active application's menu bar items, when the user presses some hotkey. The displaying of the contextual menu I can do fine, but I can't…
alaroldai
  • 336
  • 2
  • 11
6
votes
1 answer

MenuBar issue QT 4.7.4 on MAC OS LION

I'm new to QT programming. I want to create a simple menubar with two menus , and several actions (3 actions for FILE menu and one action for VIEW menu).I have createMenus() method where i create those menus and actions then I add created menus to…
user704010
6
votes
1 answer

MacOS SwiftUI Menu Bar App Settings opening in background

I'm building a macOS menu bar app with SwiftUI's new MenuBarExtra API and running into a bit of an odd issue. I've implemented a settings window that I can open with the following call: if #available(macOS 13, *) { …
rreichel
  • 794
  • 3
  • 9
  • 25
6
votes
2 answers

Java: How can I add a JMenu to a JPanel or create a drop down button?

is there any way to add a JMenuItem to a JPanel so that I can create a button to show multiple options, like the latest news button in firefox, under the address bar? I can only add JMenu and JMenuItems to a JMenuBar, JPopupMenu and other JMenus and…
Telcontar
  • 4,794
  • 7
  • 31
  • 39
6
votes
2 answers

Customize AppMenu in Qt

I am developing Qt app for MacOS. How could I add items to menuApp? I mean entry which appears on menu bar right to Apple Icon I would like to know how to achieve that in Qt, not objective-c please I am using Qt 5.9. It is QWidget app Edit: This is…
RuLoViC
  • 825
  • 7
  • 23
6
votes
1 answer

Applescript to click menu item of status bar app

I have an app called Fenêtre, when looking process name using top command it gives the name Fene?~Btre H. I would like to click the item called 'a.py' under its menubar item as shown in figure. My attempt: attempt 1 tell application "System…
user8864088
1 2
3
67 68