Open patcher without menu bar
Hi, I feel like this question must be answered somewhere, but I can’t find the answer:
How do you open a patcher without a menu bar? Basically, something like the "About Max" window. I am trying to make a settings window for my program, and I want it to pop up without the menu bar, because that’s quite unnecessary. I’ve also found that unchecking "Show Toolbar on Open" in the patcher’s inspector does not actually hide the toolbar when I open it.
BTW I am using the "open" message to [pcontrol], which is connected to my settings subpatcher. Using Windows.
I remember a "nomenu" message to thispatcher in the thispatcher help patch…
Thanks! That’s what I was looking for.
I also figured out the answer to the second part of my question: I simply needed to re-load the top level patch in order for toolbar to be hidden in the subpatch.
I wanted to post a follow up to this, because there seems to be a problem associated with it. When I send [thispatcher] the message "window flags nomenu, window exec, savewindow 1," I get a Max window error "method bringtofront called on invalid object when I restart the patch." I can avoid the error by sending "savewindow 0," but then it will show the menu.
Presumably that is a bug? Is the best option to simply loadbang the nomenu message to [thispatcher], rather than saving the window?
I can’t repro here with a simple patch. Is there perhaps something else going on in your patch?
Hi, I can recreate it in a very simple patch:
----------begin_max5_patcher---------- 420.3ockSsraBCCD7bPh+AKy0zp3fBPaO0efJ0yUnJSxBrUIqQwlBET+2qej vqR5iCw65YVu1dx3886Ewmo1BZN6d1Krnn8VjHOlCIpEHhWI2lWJ09B4UfVK W.73FRCr03I1fTgZCadobglQpJfVGyZ.gsPdLSKeGZ.DGVOstBoRv36dZK5J oIeIRKdsFxMgCnHK41jXlXhOjNYXX1sIrosqZthLZbG3VfH0xebOTqMsahnE NfY9XED1AN+XqvB+kRM6saR4m1eRV4Km+XMJK4dlO62yEsg3+rNRvFay+tLZ VhZ+sGputFI9cMJU3CityOI4+KQocKQwcISheRlZobVflNM3IWuN65x3O3FF 7raL3TbYdKkKYQc.HuToAWxNkpxEI07Rkz3Rc9NeDIrxcQ6pq4JRapkHYmjk D9FlNdzjCgquNcnoCGFyFmYE4w1jrrrtJ2fVEryCg6gwEjGekXmINmCnhP0r oWX7B+R3kH8sGzd40QbgcTqVWm292nwnyNwpT.ZCRRCpnSJRbdQKwhBvyevJ UgEqTHYZNGW4n1umM70Lh4fz -----------end_max5_patcher-----------
Please paste this into a new patcher window, click the message box, save the patcher to disk, close it AND restart Max, then open it again. Note that it only happens if you close Max entirely, i.e. you don’t just close the patch, but also close the Max window and other patchers running.
I’m using Windows 7 64-bit, 5.1.5.
Thanks for the clarification. I can only get this to happen when launching Max from the patch. This is a harmless error and can be ignored. It should not happen under other circumstances, say, when you open Max first or in a standalone.
If it really is bumming you out, then a loadbang might be the best way to go at this time.
Moderate bummage, but I think I can manage. :)
One last question:
I sent the nomenu message to my toplevel patcher as well, but when I make it into a standalone, the Max Runtime window appears on startup, even though I have that option unchecked in [standalone]. Is there any way around that?
This was actually programmed like this by design. On Windows, if there is no menu then you cannot do anything. So, when max is launched if there are no windows that have a menu, Max always shows the max window to give the user a chance to do something.
However, it has come up a few times and thus we do have this issue as something to look at down the road.
A workaround is to add a deferlow between the loadbang and the window message box.
Apologies for the inconvenience.
That works perfectly, thank you so much for all of your help.
thanks for the workaround !
Running max 6 over here. I have a project that I want to use with runtime. I can’t get it to run without the toolbar. Could someone please spell it out for me? I have yet to find the right permutation and the client I developed this for just decided they don’t want to use display out for their monitor… which was cake to set up. Is the message different on a mac?
----------begin_max5_patcher---------- 507.3ocwUEriaBCD8L7UXwdkVEbHrP6o9CTodtZUkCLg3JicD1oIcWs+60iM zTxBRzPU5AFF+lAyaddF3kvfnspyfNh7AxWIAAuDFD3fPfft0AQMrykBl1kV jDNo198nXeHCb13fEJV0VlrtO.uxAaS8cq6w1ojFIqAbQ9TKmI5ibfYJ2yk0 eqEJMd1P2j99Uwj70nMaEZoVK4otGQdrgKEfwwpjKfpilqQw2ql+r68lPs6j G1mo4mG.+aLxwexSXzWCCQS7xDkJXGzJTmFQTnKQTRnNUYS18PUtMEoAzZVM 7FI4DWVoNQ1IX0ZhT0.xiwjNP3LTFSzre.c.IiHbIKR3JbBG02UkjOkxQ+Op bFUcs.FoxSmQ8kQ6aIt8Fi2TGbo4e5XgYOW6pAncjxLeIGvTZg66EE2h.P+a Oeicmwcgw91t.O7YLzfxjD8Qz7vWPqu8F8byAnScqGnTnz.57rR0f2kpc1us Z7t33B5YKEdCxvo12RkTaZYbocwlU9q0zGyx+8sweNseSSo3zQgUHysdYYES kugaDSyBbf9pfWltsqRFFCjU9rGzr4D3HAWd8+obZKhOrCTqN1V1eRz8+Gxk 9fJPa3Rlgqj+QNzA4rmWUAtv8m8M7pCJ6bPGElXZXtLhNCFkdWYT5LXTxckQ IyfQ4KfQ1EuF9K.EW3Qz -----------end_max5_patcher-----------
What would be the equivalent of this for Mac? Would the thispatcher need to be in a patcher?
did you try View menu-> Patcher inspector-> deselect ‘view toolbar’ checkbox…?
Thank you for the suggestion. Unfortunately, it does not work :(
Forums > MaxMSP