Community
Participate
Working Groups
A programmer needs the following support in SWT in order to be able to program for multi-monitors correctly. 1. A way to determine the bounds/client area of the monitor the application is primarily running on. In a win32 env his can be accomplished using the api MonitorFromWindow(). Alternatively, SWT could provide a way to get the bounds of a specific monitor. That would also include being able to get all the monitors connected to the system and also determining which one is the primary. 2. A way to determine the bounds/client area of a monitor based on a specific point. In a win32 env his can be accomplished using the api MonitorFromPoint (). 3. A way to determine the virtual bounds/client area of all connected monitors on the system. This is currently how Display.getBounds() works, but should probably be renamed to something like Display.getVirtualBounds() for clarity. The current Display.getClientArea() does not work properly as it doesn't account for task bars and such.
Any solution we come up with needs to be implementable on at least win32, linux and macosx, since multi-moniter setups are common for all these platforms.
Defer until post R2.0.
We need to look at this again, if not for 2.1 then 3.0.
*** Bug 22224 has been marked as a duplicate of this bug. ***
*** Bug 30386 has been marked as a duplicate of this bug. ***
Chrix is working on this.
*** Bug 26895 has been marked as a duplicate of this bug. ***
*** Bug 30387 has been marked as a duplicate of this bug. ***
*** Bug 7232 has been marked as a duplicate of this bug. ***
*** Bug 20223 has been marked as a duplicate of this bug. ***
I have investigated support for multi monitor support. This won't make it in Eclipse 2.1. Outstanding issues: - we require GTK 2.2. There is no API in earlier GTK versions - there is no prototype yet for Mac and Photon but we have looked at the API
Regarding this issue: the only problem i have is that when i restart eclipse, the window is not positioned as it was closed. My second monitor is left to the primary so coordinates are negative for the second monitor. Multi-monitor support is ok if you stretch the window over the two screens in minimize mode (windows). The only anoying thisg is to reposition the window manually each time is start Eclipse.
Andre: I have opened a separate bug 34239 to track down your issue. Chris
New multimonitor api has been added since I20030429. Please see javadoc for: org.eclipse.swt.widgets.Monitor org.eclipse.swt.widgets.Display.getPrimaryMonitor org.eclipse.swt.widgets.Display.getMonitors A new snippet has been added to show how to center a Shell on the primary monitor. http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt- home/snippits/snippet120.html SWT will detect multimonitor configurations on Windows, GTK 2.2 (which provides multimonitor api unlike older GTK 2.0), Mac, Linux Motif.