Block the enlargement of the window of a standalone application
Hello,
I'm looking for a way to block the window enlargement of a standalone application. I didn't find anything about this in ThisPatcher. I looked in the maxinterface.json file where I could modify the menu, but I didn't find how to block the window enlargement. Does anyone know the solution? Thanks.
i'd look into javascript for this. I'm pretty sure you can get the current size (or at least coordinates) of the window in focus, determine if there is a change and if there is revert it back to the desired size.
Hi, Lena. It's in the thispatcher helpfile, in the "Window Messages" sub-patch. The message flag is "grow" or "nogrow". Here's an example.
Hi Pedro,
I'm familiar with window messages but this function does not prohibit resizing the window. It is still possible.
Thank you. Lena
Hello Luvulongtime,
Indeed, it's an idea, I hadn't thought about it, it's not the most elegant thing but it can work. Thanks, I'll try it. Nice day.
Lena
What OS are you running Max on? I'm using MacOS and after I click on the "nogrow" box, I'm not able to resize. Even the zoom icon (green circle) on the top left corner of the window gets greyed out (inactive).
I'm wondering if you have remebered to add a (window exec) message after setting the nogrow flag? These are the sort of messages I use:


I can confirm that in Windows, setting the {nogrow} flag deactives the zoom box on the title bar (greys it out) and prevents the window being re-sized.