Eew! ;)
On Thu, Dec 20, 2018 at 3:41 PM Mickael Istria wrote:
> Hi Wim,
>
> Looking at the code of Control, I do not see any notification sent for a
> change.
> But you could hook a Paint listener on a specific widget that would keep
> track of the font and color used on last redraw and notify i
Hi Wim,
Correct me if I'm wrong, but there is no API for that, because there's no
event fired on color and/or font change.
A possible way to do that is to use AOP with a pointcut on setFont,
setBackground and setForeground() methods.
Mickael's solution has the advantage of not using external lib
Hi Wim,
Looking at the code of Control, I do not see any notification sent for a
change.
But you could hook a Paint listener on a specific widget that would keep
track of the font and color used on last redraw and notify if the current
ones are different.
HTH
_
Hi,
Is anyone aware of an API to detect font and color changes of a widget?
Cheers,
Wim
___
platform-dev mailing list
platform-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://www.e