tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/5438-set-monitor-for-extensionsInfinite Kind: Discussion 2021-07-13T21:40:21Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/491406212021-04-13T16:58:31Z2021-04-13T16:58:31ZSet monitor for extensions<div><p>In a multi-monitor environment, ALL extensions currently open on the main monitor (Windows 10) - even the ones that I've written. There does not seem to be a way to have them open on the same monitor as the one the Moneydance application is on. Since the extension is called from the main app, it seems as though there would need to be an option provided by Moneydance to make this happen.</p>
<p>Am I correct in that assumption? I don't see a way of coding my extension to open on the parent's (Moneydance app) monitor.</p></div>Bob Btag:infinitekind.tenderapp.com,2009-01-14:Comment/491406212021-04-13T18:41:56Z2021-04-13T18:41:56ZSet monitor for extensions<div><p>Seems odd. Are you using swing? Perhaps post the skeleton code you are using to create a window and open it?</p></div>Stuart Beesley (Mr Toolbox)tag:infinitekind.tenderapp.com,2009-01-14:Comment/491406212021-04-13T21:37:08Z2021-04-13T21:37:08ZSet monitor for extensions<div><p>I don't know of any way that Moneydance could provide this ability as we don't pay attention to which is the "active" monitor (or even if there is any such thing that we can access). When we display a window we either centre it on the screen or display it with relative coordinates to another window.</p>
<p>I expect you could call some awt code to get the coordinates of a specific display and center the window on it, as in the example code for GraphicsDevice: <a href="https://docs.oracle.com/javase/7/docs/api/java/awt/GraphicsDevice.html">https://docs.oracle.com/javase/7/docs/api/java/awt/GraphicsDevice.html</a></p>
<p>Thanks,<br>
Sean</p>
<p>--<br>
Sean Reilly<br>
Developer, The Infinite Kind<br>
<a href="https://infinitekind.com">https://infinitekind.com</a></p></div>Sean Reilly