Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Resize listeners on Display?

It think on Windows you can detect that the display bounds changed by hooking the SWT.Settings event . I am not sure this would work on Mac and GTK.

Anyway, 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.

Silenio



From:        Ralf Sternberg <rsternberg@xxxxxxxxxxxxxxxxx>
To:        platform-swt-dev@xxxxxxxxxxx,
Date:        03/14/2013 05:25 AM
Subject:        [platform-swt-dev] Resize listeners on Display?
Sent by:        platform-swt-dev-bounces@xxxxxxxxxxx




Hi SWT devs,

you probably know that the RAP project allows writing web applications
with SWT API. We've got requests to support untyped SWT.Resize
listeners on Display [1]. This is currently not supported in SWT but
seems to be a very useful feature - at least for RAP, where the
Display size changes everytime a mobile device is rotated. However, we
think that also in SWT, the Display size can change, e.g. when
changing the resolution, or plugging in an additional monitor, so
we've opened bug against SWT [2].

Since we usually don't deviate from the SWT API, we'd like to hear
your opinion. Are there any concerns about supporting SWT.Resize
listeners on Display?

Thanks,
Ralf

[1] (RAP) 201261: [Display] Support Resize-Listener
   
https://bugs.eclipse.org/bugs/show_bug.cgi?id=201261

[2] (SWT) 402514: Add support for display resize listener
   
https://bugs.eclipse.org/bugs/show_bug.cgi?id=402514
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top