How to inherit window icons to child windows / dialogs [swt/jface] [message #324841] |
Fri, 01 February 2008 16:45  |
Eclipse User |
|
|
|
Hi Folks,
I have a problem whereby I've set a icon up for my ApplicationWindow as follows
getShell().setImages( new Image[] { image } );
but all child windows / dialogs etc don't inherit the icon, they show the default white box icon (on windows). Does anyone know how to
inherit the icon when using for example the MessageDialog?
Or, can I disable icons completly? for just child windows?
I've tried
on the ApplicationWindow.createContents() method but no joy.
Also, when would I need to pass in multiple images to the above image array, and what is that for?
Thanks in advance
Cheers,
Toby
|
|
|
|
|
Re: How to inherit window icons to child windows / dialogs [swt/jface] [message #324878 is a reply to message #324876] |
Sun, 03 February 2008 14:59  |
Eclipse User |
|
|
|
You can create an icon with a transparent background and without contents.
Snjeza
Toby Weston wrote:
> Hi,
>
> I've been looking at that and by passing a valid image through I get the icon appearing! yey!
>
> I wonder how though I can get no icon appearing? Looking at the source, it seems to not make sence to set it to null as it doesn't do anything with it?
>
> Any ideas?
>
> Cheers
|
|
|
Powered by
FUDForum. Page generated in 0.04371 seconds