controlling size of Windows standalone window

Feb 12, 2007 at 5:11pm

controlling size of Windows standalone window

I’m developing a standalone Max app for Windows (working on Windows
is new for me, usually I’m on a Mac). I know how to make my Max
patcher full screen (window zoom 1 message to thispatcher), so I
don’t get the “window in a window” effect, but how can I control the
size of the overall application window itself??

Thanks,
Dan

Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com

http://www.jackosx.com

#30249
Feb 12, 2007 at 7:46pm

wmangle extern by thomas grill.

#96248
Feb 13, 2007 at 1:07am

Thanks, I’ll check it out.

Dan

At 11:46 AM -0800 2/12/07, James wrote:
>wmangle extern by thomas grill.


Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com

http://www.jackosx.com

#96249
Feb 13, 2007 at 10:29am

im not sure if this is what your looking for but if you dont nessecarily want your patch to fill the entire screen, you can also use the [window size $1 $2 $3 $4, window exec] script with [thispatcher] and then send a message to max to hide the menu bar:

;max hidemenubar

Will

#96250
Feb 13, 2007 at 6:09pm

Thanks, but I don’t mind the main Max menu bar; I just want to not have the “window in window” effect, and also be able to control the size of the *main* application window.

[window size 100 100 700 700, window exec] works to reduce the size of the patcher window, but not the main enclosing window. If I do a [window zoom 1, window exec] I get rid of the “window in window” effect, but the size of the patcher then expands to fit the enclosing window’s size.

And if I first do [window zoom 1, window exec], followed by [window size 100 100 700 700, window exec], the size command is not followed.

Any other ideas??

Thanks,
Dan

#96251
Feb 13, 2007 at 7:04pm

I’d sure like to know how to do this also.

brad

http://music.columbia.edu/~brad

On Tue, 13 Feb 2007, Dan Nigrin wrote:

>
> Thanks, but I don’t mind the main Max menu bar; I just want to not have the “window in window” effect, and also be able to control the size of the *main* application window.
>
> [window size 100 100 700 700, window exec] works to reduce the size of the patcher window, but not the main enclosing window. If I do a [window zoom 1, window exec] I get rid of the “window in window” effect, but the size of the patcher then expands to fit the enclosing window’s size.
>
> And if I first do [window zoom 1, window exec], followed by [window size 100 100 700 700, window exec], the size command is not followed.
>
> Any other ideas??
>
> Thanks,
> Dan
> –
> Dan Nigrin
> Defective Records
> 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major Malfunction
> http://www.defectiverecords.com
> http://www.jackosx.com
>

#96252
Feb 13, 2007 at 7:34pm

It does seem that Jamez’ suggestion to try Thomas Grill’s wmangle is a good one, as it does work. However it seems to be a bit unreliable/unpredictable, as it is grabbing the *name* of the window to identify it, prior to adjusting its size. In one instance, I had it controlling *another* window’s size/location on my desktop, rather than my Max app’s, as it was named the same thing as my Max app…

That’ll freak out some of my end users!

Is there perhaps a value that could be manually edited in the Max application’s support folder that controls its initial size?

Dan

#96253
Feb 13, 2007 at 8:33pm

heheh yeah, it’s a pretty bizarre external.

#96254

You must be logged in to reply to this topic.