Hi I’ve developed an app on windows xojo and wanting to compile for mac too. So far not too bad, all the functionality is there, just some GUI / font stuff to solve.
My biggest problem is that I don’t understand how how get a different menu bar to appear when in a second window when it opens / has focus. On windows, the menu bar obviously appears within the window its-self, on mac you have one menu bar for the whole app. I’ve seen a similar thread with the same issue from a few year ago, but there was never an answer. so app is like:
App MenuBar = non
Window 1 = non
Window 2 (main interface) = MenuBar 1 (frame = document, behaviour set to default)
Window 3 (edit interface) = MenuBar 2 (frame = floating window, behaviour currently set to parent window)
And then various other minor windows with no Menubars attached to them.
When the user gets to windows 2, menu bar 1 shows as it should. When the user then opens window 3, it remains on MenuBar 1, selecting the window does nothing.
Window 3 is a non resalable window over the top of window 2. The user can still access window 2 while window 3 is open - this is the functionality I want. I expected the menu bar to change to the appropriate one when the user selects/set focus on the window they are on. But I am not that knowledgeable on MacOS.
It worth noting, that I think when the user selects a window that doesn’t have a menu bar attached to it the menubar goes blank in Mac… which is expected I guess. But this only happens after they have clicked on the window (or I think even when they have selected the main window and then went back to the other window), not when it’s opened. But that doesn’t make sense as to why it wouldn’t show the other MenuBar2.
I’m having to compile it on windows and then reboot on to mac OS to test it my computer will only go up to EL captain. Which is a bit of a pain, so hoping there’s a straight forward answer. I have ended up with fair amounts of open event codes on the windows, but I don’t know if or why that would interfere with this problem.