[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[platform-swt-dev] Re: Re: How does one set the background on a Button with style SWT.PUSH or SWT.ARROW?
|
- From: Lodewijk Pool <louis.pool@xxxxxxxxx>
- Date: Sun, 8 Jan 2006 00:43:37 +0100
- Delivered-to: platform-swt-dev@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Ie1MNZ3Ze+bK+BIxgzgEywy5ROhceMgg1/akNUf6c941yUlYvv3coskJTJ2JsvZwERKO+ZfvASzlkVSVDsf2zVzcAcTjrYjxDe6QVIpxUCT8Sb+Ft/OznwBzk7YFGjckFm8u6J3WAFb91i4kxUwAD51yghmawMjE41Rci/EAZI4=
Thanks for your input Colin.
For the interim I have implemented a rather notso-elegant solution by adding paintlistener to the button and then drawing a filled rectangle across the whole button, by setting the alpha of the colour to about .5 I achieve an affect that suits my needs well enough. This, however, does require an explicit redraw request on a selection event since, for some reason, the filled rectangle is removed whenever the button is pushed.
In the meantime I am still hoping that there is a better way of doing this.
Regards,
Louis.