Summary: | Add support for display resize listener | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Ivan Furnadjiev <ivan> |
Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | hudsonr, markus.kell.r, Silenio_Quarti |
Version: | 4.2 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Bug Depends on: | |||
Bug Blocks: | 201261 |
Description
Ivan Furnadjiev
2013-03-06 05:47:29 EST
I think that Display fires the multi-purpose "Settings" event when the resolution changes. (In reply to comment #1) > I think that Display fires the multi-purpose "Settings" event when the > resolution changes. I tried `display.addListener( SWT.Settings, listener )` in GTK, but the listener is not called when the Display resolution changes. However, `display.getBounds()` returns the updated size after the change. Apart from the Settings event, since the bounds of the Display are changing, wouldn't it be consequent to accept a Resize listener? SWT.Settings event should work on Windows, but it is not sent on Mac and GTK when the display bounds changes. I believe having a SWT.Resize on Display is fine. Note that ideally SWT.Resize would have to be sent when the client area of the display changes. For example, we should get one when the task bar changes height on Windows. I am not sure whether there is support on all platforms for this. |