centring a patcher window in a standalone app

May 2, 2011 at 11:10am

centring a patcher window in a standalone app

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 at 1:19pm

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 at 1:30pm

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

May 2, 2011 at 1:32pm

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

May 2, 2011 at 1:50pm

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

May 5, 2011 at 4:13pm

yes it worked! thank you very much!

May 5, 2011 at 4:17pm

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


You must be logged in to reply to this topic.