Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Background Image Adjustment in TreeViewer/Control
Background Image Adjustment in TreeViewer/Control [message #655500] Mon, 21 February 2011 13:24 Go to next message
c h is currently offline c hFriend
Messages: 4
Registered: February 2011
Location: Wertheim
Junior Member
Hello,

I have a JFace TreeViewer with a background image.

 
viewer = new TreeViewer(parent, SWT.H_SCROLL | SWT.V_SCROLL);
...
viewer.getControl().setBackgroundImage(image);


Is it posible to stick the image to the lower left edge, even if the TreeViewer is resized?

[Updated on: Mon, 21 February 2011 13:24]

Report message to a moderator

Re: Background Image Adjustment in TreeViewer/Control [message #655964 is a reply to message #655500] Wed, 23 February 2011 14:48 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Hi,

There isn't a way to specify positioning of a Control's background Image.
The only thing you could try would be to create a second Image whose size
matched that of the Tree, and to copy the image bits from the original Image
to the lower-left corner of this larger image.

Grant


<c.henker@me.com> wrote in message news:ijtolv$3pf$1@news.eclipse.org...
> Hello,
>
> I have a JFace TreeViewer with a background image.
>
> viewer = new TreeViewer(parent, SWT.H_SCROLL | SWT.V_SCROLL);
> ..
> viewer.getControl().setBackgroundImage(image);
>
>
> Is it posible to stick the image to the lower left egde, even if the
> TreeViewer is resized?
Previous Topic:TextViewer and scroll down
Next Topic:How do I get rid of unwanted scroll bars in tree viewer?
Goto Forum:
  


Current Time: Thu Dec 18 22:24:11 GMT 2014

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

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