Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding image to initial page Composite on opening of applictaion(Adding image to initial page Composite on opening of applictaion)
Adding image to initial page Composite on opening of applictaion [message #493594] Tue, 27 October 2009 06:00 Go to next message
govind Ra is currently offline govind RaFriend
Messages: 95
Registered: July 2009
Member
Hello All,

I have RCP application which has a view with tree structure project resource in it. and other is page composite where the file editor will open for viewing.

Now when i start initially the page composite is empty and grey which i want to change so can add image to this page Composite.

Regards
Govind R Sad Sad
Re: Adding image to initial page Composite on opening of applictaion [message #493759 is a reply to message #493594] Tue, 27 October 2009 21:43 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
On Tue, 27 Oct 2009 02:00:59 -0400, govind wrote:
> Now when i start initially the page composite is empty and grey which i
> want to change so can add image to this page Composite.

You want to draw an image on the composite or did you want the image as
the composite's background? Control defines a setBackgroundImage(Image)
method you can use if it's the latter. For the former you'll need to use
a GC.

Snippets are your friend.
http://www.eclipse.org/swt/snippets

Regards,
Remy
Re: Adding image to initial page Composite on opening of applictaion [message #493801 is a reply to message #493759] Wed, 28 October 2009 05:05 Go to previous message
govind Ra is currently offline govind RaFriend
Messages: 95
Registered: July 2009
Member
Hello Remy

I am trying some thing like this ,

final IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
Control page = configurer.createPageComposite(shell);
page.setBackground(ColorConstants.red);

Its not working.....Sad

Any other way ..

Regards
Govind
Previous Topic:how to fire a PropertyTester between MultiPageEditor pages?
Next Topic:How to contribute a new command into a sub-context menu?
Goto Forum:
  


Current Time: Thu Mar 28 08:36:33 GMT 2024

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

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

Back to the top