1,037 questions
0
votes
0
answers
23
views
What does it take to have system default menus show up when programmatically constructing an application in AppKit for macOS Tahoe? [duplicate]
I create an app in Xcode in macOS Tahoe using Storyboards for macOS not modifying anything, and I run it, and I click on the Window menu. This is what I see:
But now... in the default storyboard it ...
2
votes
0
answers
55
views
How to get rid of NSStatusItem's mask and shadow?
My app displays a custom view MenuBarView() as a menubar button. I'm using this in my AppDelegate:
if let button = statusItem.button {
let menuBarView = MenuBarView()
let hostingViewForMenuBar ...
1
vote
1
answer
161
views
Geogebra : no toolbar and no menu
I looked at several videos, explaning how to use the menu and the toolbar to make regression models. But when I open Geogebra, I have none of these menu bars. There's only a burger menu whose content ...
1
vote
1
answer
60
views
Updating a menubar title for MacOS
I'm trying to create a menubar app that will update the word shown in the menubar every 10 minutes. But at the moment it is just showing KBar initially instead of being set to a random word ...
0
votes
2
answers
71
views
Key access to menu bar with ownerdraw
Since I use ownerdraw for the menu bar, the key access does not work anymore. Without ownerdraw Alt+F works for the item "&File", with ownerdraw nothing happens. What is missing here? ...
0
votes
0
answers
39
views
Preventing f10 selecting the menu bar in Python (Windows 10/11)
I admit that ideally I should not be trying to use the f10 as a keypress() in python but I have a program which is used at a miniature railway to track train movements. The signallers select the type ...
0
votes
2
answers
44
views
Dropdown menu doesn't appear when I pass the mouse on navbar
Good day,
I am trying to create a dropdown menu on my freshly new website but cannot find the reason as to why it does not appear.
It should appear under "About" but when I click on it ...
1
vote
1
answer
133
views
I can't tell System Events to click menu items with an apostrophe in it
I recently switched my laptop to French from German.
In German, I used an applescript that clicks "Open Recent" in the menu "File" so I can access recent files with a keyboard ...
0
votes
1
answer
394
views
How to remove menu bar from the window that opens with an external URL of an Electron application
I have the below code to remove menu bar from the window that opens with an external URL of an Electron application.
windowObject.webContents.setWindowOpenHandler(() => ({
action: 'allow',
...
1
vote
1
answer
1k
views
How to set menu bar color in win32?
I need to set all the non-client areas of my app (border, caption, menu bar) to a specific color.
I can set the caption and border with DwmSetWindowAttribute. But the menu bar eludes me.
I try ...
-2
votes
1
answer
227
views
What's the syntax of clsx to add two classNames when one condition satisfied?
I have a menu block, i use clsx lib for the conditional classname rendering.
I wanna add two className at the same line when the condition satisfies. Some one can tell me the right syntax ?
For now i ...
1
vote
1
answer
465
views
How do I make a Gtk4 application with a menu bar in Vala?
I attempted to make a simple Gtk4 application, and I tried to add a menu bar with a menu that does two things: print “Hello, World” and quit.
The code compiles as expected with the command
valac --pkg=...
1
vote
2
answers
1k
views
Selectively Removing Default Menu Bar Menus (like File, Edit, and View) in macOS App Using SwiftUI
Is there a SwiftUI idiomatic way to selectively remove the defualt (File, Edit, and View) menus from the menu bar in a macOS app, while keeping other menus like the AppName menu intact? The app I’m ...
4
votes
0
answers
223
views
How to achieve real-time SwiftUI Interface updates for variable changes in macOS Menu Bar?
I have a SwiftUI application with a Menu Bar (MenuBarExtra), and it displays a counter that increments every second. I'm using an @Published variable in an ObservableObject to track changes in the ...
1
vote
1
answer
925
views
Flutter menuBar: how to remove background/border?
Flutter menuBar: how to remove background/border?
MenuBar(children: [
MenuItemButton(child: Text('Login')),
MenuItemButton(child: Text('Register')),
])
--------------------
| Login Register |
...
2
votes
3
answers
3k
views
SwiftUI MenuBarExtra with custom view in menubar instead of just icon and label
I read that one can use MenuBarExtra in a Swift macOS application to create a menubar application. An icon with a label can be displayed in the menubar. However, clicking on the entry opens a context ...
0
votes
1
answer
2k
views
Keeping PrimeNG p-menubar to stay within viewport
I have been playing around with PrimeNG's p-menubar, but I am having an issue where if you have the bellow code:
<p-panel>
<div class="d-flex">
<div class="flex-grow-...
0
votes
1
answer
380
views
SwiftUI View not updating when embedded into NSHostingView
I am trying to use a custom View in the menu bar. The View ist displayed, however, the text is not updated properly.
I have the following code:
@main
struct MenuBarTestApp: SwiftUI.App {
@...
1
vote
0
answers
301
views
Unable to control full screen menu bar visibility on MacOS using CLI defaults
I'm trying to programmatically (shell) control MacOS auto-hide feature of menu bar, but could not find working solution.
For controlling manu bar auto-hide on regular desktop I can use AppleScript ...
0
votes
0
answers
34
views
Sometimes the dropdown menu appears, sometimes it doesn't work
import Logo1 from "../../AssetsMain/Img/logo.png";
import "./Navbar6css.css";
const Navbar6 = () => {
return (
<div className="navigation-fixed-wrapper"...
0
votes
1
answer
299
views
Python, change menu state
I am trying to get the following code to work, could any point out where I am going wrong?
The object is to set the menu state to disabled when a new form is loaded and then to set the menu state back ...
3
votes
2
answers
2k
views
Vue router-link warn
Hello Guys I am currently working on a Vuejs3 Project, and I installed Primevue
i added it to my main.js and imported the Menubar from it into my App.vue.
I tested it and i got the this warning, I don'...
0
votes
1
answer
1k
views
Is there a way to show menu bar when frame: false in Electron js?
I am trying to add custom title bar in Electron js for Windows. So to hide the default title bar I wrote:
mainWindow = new BrowserWindow({
frame: false
});
But the above code hides the menu bar ...
0
votes
1
answer
125
views
Qml MenuItem with Comma in Shortcut
I am writing a Qt 6.5 Qml application with a menubar. It should have "Ctrl+," as a shortcut, but the QML shortcuts are comma delimited. How can I escape the comma to define the shortcut?
...
0
votes
1
answer
23
views
Logo and menu is not attached
Im new to html and css, right now I have a assignment to build a simple website but my logo and menubar are moving down when ever im scrolling down the page. Can someone help me with this issue? My ...