Snap window fullscreen with multiple screens
Does anyone have a somewhat elegant solution to allow a user to drag a window to one of their displays and have that window size correctly with all the components in presentation mode also correctly scaling to preserve location and ratio?
I have been struggling playing around with jit.display & window size messages but I have noticed that I have negative coordinates from jit.display in my case which isnt making it very easy.
Just curious if anyone out there has already tackled this.
such things are different between different max versions and especially between windows and OSX, and pre-mavericks and mavericks.
so in case it will fit to your situation, it is always the best to do that via thispatcher and with fixed positions and sizes. it might require the user to click a button or select a custom menubar entry to force the resize after the windows has been moved to a new monitor space.
I am currently trying to get it to work on OSX post mavericks with Max7 however I noticed that even if I use divisions from window getsize to dynamically change the objects location in presentation mode it works well but if I add another monitor to the mix then I have to compensate for negative values. Are these negative values standard or are they based on where the screen is located in System Preferences?
Any suggestions to a better method?
for my part i have no idea, i always set up the leftmost monitor as the start monitor and i try to avoid anything higher than OSX 10.6.8. :)
haha yeah,
trying to figure out how to do this since I want to give it to other computers and have it work on different size screens and configurations.
Below is a test patch of what I was thinking but it fails between my own two monitors due to the weird coordinates that the second monitor adds.
tried screensize ?