Set monitor for extensions

Bob B's Avatar

Bob B

13 Apr, 2021 04:58 PM

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.

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.

  1. 1 Posted by Stuart Beesley ... on 13 Apr, 2021 06:41 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    Seems odd. Are you using swing? Perhaps post the skeleton code you are using to create a window and open it?

  2. Support Staff 2 Posted by Sean Reilly on 13 Apr, 2021 09:37 PM

    Sean Reilly's Avatar

    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.

    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: https://docs.oracle.com/javase/7/docs/api/java/awt/GraphicsDevice.html

    Thanks,
    Sean

    --
    Sean Reilly
    Developer, The Infinite Kind
    https://infinitekind.com

  3. System closed this discussion on 13 Jul, 2021 09:40 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac