Forums > MaxMSP

centring a patcher window in a standalone app

May 2, 2011 | 11:10 am

i do this to centre a patcher window on a screen:

— Pasted Max Patch, click to expand. —

but in a standalone to be distributed, it results in an ungraceful window flicker when you load the app on a different res screen to what the patch was saved on.

does anyone have a solution for this problem?



May 2, 2011 | 1:19 pm

Haven’t tried this Oli, but could you save the patch with off-screen coordinates, or 1 pixel large window size, and *then* do your window resizing/positioning? Just an idea, not sure if it would work.

May 2, 2011 | 1:30 pm

I tried that, but offscreen coords don’t seem to work in standalones

May 2, 2011 | 1:32 pm

Maybe I will give up centering and just use a fixed offset from top right hand corner

May 2, 2011 | 1:50 pm

How about the 1 pixel wide initial screen, instead of off-screen?

May 5, 2011 | 4:13 pm

yes it worked! thank you very much!

May 5, 2011 | 4:17 pm

Glad to hear it! I’ll probably use the same trick myself one day… ;-)

Viewing 7 posts - 1 through 7 (of 7 total)

Forums > MaxMSP