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?

thanks,

oli

#56790
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.

#203532
May 2, 2011 at 1:30pm

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

#203533
May 2, 2011 at 1:32pm

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

#203534
May 2, 2011 at 1:50pm

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

#203535
May 5, 2011 at 4:13pm

yes it worked! thank you very much!

#203536
May 5, 2011 at 4:17pm

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

#203537

You must be logged in to reply to this topic.