[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [platform-swt-dev] ico on the title bar
|
Brian,
You can try using Shell.setImage() or Shell.setImages() method.
-----Original Message-----
From: platform-swt-dev-admin@xxxxxxxxxxx
[mailto:platform-swt-dev-admin@xxxxxxxxxxx] On Behalf Of Brian Al Saadi
Sent: Tuesday, 16 November 2004 5:30 AM
To: platform-swt-dev@xxxxxxxxxxx
Subject: [platform-swt-dev] ico on the title bar
Hi Guys
I am trying to have an icon on my window title-bar with transparent pixels..
My image type is ICO. First I wanna convert the image to bmp so my first
question is can I just rename the file to .bmp or do I need to do more
things. Then I am thinking of getting the image data then call new on the
Image constructor with icondata.getTransparencyMask() parameter ?
Image icon= new Image(display, "c:\\project\\icon.bmp"); ImageData icondata=
icon.getImageData(); icon= new Image(display, icondata,
icondata.getTransparencyMask()); shell.setImage(icon);
thank you
Brian
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev