Skip to main content



      Home
Home » Eclipse Projects » JFace » Background Image Adjustment in TreeViewer/Control
Background Image Adjustment in TreeViewer/Control [message #655500] Mon, 21 February 2011 08:24 Go to next message
Eclipse UserFriend
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 08:24] by Moderator

Re: Background Image Adjustment in TreeViewer/Control [message #655964 is a reply to message #655500] Wed, 23 February 2011 09:48 Go to previous message
Eclipse UserFriend
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: Thu Jul 10 00:01:26 EDT 2025

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

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

Back to the top