Skip to main content


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: 2150
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:Showing log file in TextViewer
Next Topic:How to draw hyperlink in TreeViewer column?
Goto Forum:
  


Current Time: Fri Apr 19 15:03:41 GMT 2024

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

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

Back to the top