Community
Participate
Working Groups
Created attachment 285173 [details] Sample code If a Shell is created on a high-dpi primary monitor, and subsequently moved to a secondary monitor having a different dpi (in my test case, lower), the Shell and its contents are not auto-rescaled, therefore appearing very large. A listener for SWT.ZoomChanged on the Shell does receive the event, as expected. I noticed that Eclipse IDE does auto-rescale its windows/shells when they are moved to a different dpi monitor. How is that achieved? Could it be done as well for regular SWT shells and components? Notes: - test system is Windows 10 (untested with GTK, macOS) - the Shell is a standard shell with SHELL_TRIM - not using any swt.autoScale setting Test code attached.
Could anybody help or provide a pointer for the above? Thanks.