Community
Participate
Working Groups
SWT 3.3M4 seems to have problems with making button images gray when button is disabled. I attach here two images, one with SWT 3.3M4 and one with 3.2.1.
Created attachment 55849 [details] image taken from my app with SWT 3.3M4
Created attachment 55850 [details] image taken from my app with SWT 3.2
Created attachment 55851 [details] the remove (minus) icon, which had problems when made gray
FH, what kind of image is this? Does it have alpha?
The image is 32bits png bgra. If have a bug in `new Image(display, image, SWT.IMAGE_DISABLE);` I think we see this problem now in Button because we changed Button to use ImageList (BCM_SETIMAGELIST). shell.addListener(SWT.Paint, new Listener() { public void handleEvent(Event event) { Image image = new Image(display, "D:\\remove16.png"); Image grayImage = new Image(display, image, SWT.IMAGE_GRAY); Image disableImage = new Image(display, image, SWT.IMAGE_DISABLE); event.gc.drawImage(image, 70, 410); event.gc.drawImage(grayImage, 110, 410);//GOOD event.gc.drawImage(disableImage, 150, 410);//BAD image.dispose(); grayImage.dispose(); disableImage.dispose(); } });
Is it to be fixed in upcomming 3.3 M5?
SSQ, is FH right? Is the problem caused by image list or changes to icon graying to support alpha?
Fixed > 20070125
Thanks.