Missing SWT Image Constants [message #988899] |
Mon, 03 December 2012 10:48  |
Eclipse User |
|
|
|
Hi,
I am trying to create a grayed (or disabled) version of an SWT image as described in [1] under "Image Effects":
Image grayImage = new Image(display,image,SWT.IMAGE_GRAY);
However, neither the SWT.IMAGE_GRAY nor the SWT.IMAGE_DISABLE constants seem to be available in RAP 1.5.
Any suggestions on how to achieve this in RAP?
I know it is possible somehow because disabling a button that has an associated image does gray out/disable that image.
Thanks,
Franz-Stefan
[1] http://www.eclipse.org/articles/Article-SWT-images/graphics-resources.html
(I use the SWT class from org.eclipse.rap.rwt-1.5.1.20120917-1116.jar).
|
|
|
|
Powered by
FUDForum. Page generated in 0.03047 seconds