Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to inherit window icons to child windows / dialogs [swt/jface]
How to inherit window icons to child windows / dialogs [swt/jface] [message #324841] Fri, 01 February 2008 16:45 Go to next message
Eclipse UserFriend
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

setDefaultImage(null);


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 #324860 is a reply to message #324841] Sat, 02 February 2008 18:59 Go to previous messageGo to next message
Eclipse UserFriend
You may want to see the Window.setDefaultImages() method.
If you are using an RCP application, you can set the windowImages
property within the org.eclipse.core.runtime.products extension point.

Snjeza

Toby Weston wrote:
> 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
>
>
setDefaultImage(null);

>
> 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 #324876 is a reply to message #324860] Sun, 03 February 2008 13:51 Go to previous messageGo to next message
Eclipse UserFriend
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
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Accessibility: need thicker caret
Next Topic:Weird html/xml error markers
Goto Forum:
  


Current Time: Fri Sep 19 09:35:41 EDT 2025

Powered by FUDForum. Page generated in 0.03224 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top