Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how place Canvas or image in a cell inside Table widget
how place Canvas or image in a cell inside Table widget [message #450877] Sat, 19 February 2005 04:21 Go to next message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 504
Registered: July 2009
Senior Member
Hi,

I'm looking for examples or any kind of information on how to put a
Canvas or dynamically rendered image into a cell within SWT Table
widget. Is it even possible? I'd appreciate any pointers.

Thanks in advance.

Eugene
Re: how place Canvas or image in a cell inside Table widget [message #451061 is a reply to message #450877] Tue, 22 February 2005 13:35 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You can set an image into a table using TableItem.setImage(Image).

Alternatively, you can use TableEditor if wish to have an image that takes
up the entire cell. The following example creates a progress bar but you
can create any widget such as a Canvas:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet149.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

"Eugene Kuleshov" <eu@md.pp.ru> wrote in message
news:cv6esl$6he$1@www.eclipse.org...
> Hi,
>
> I'm looking for examples or any kind of information on how to put a
> Canvas or dynamically rendered image into a cell within SWT Table widget.
> Is it even possible? I'd appreciate any pointers.
>
> Thanks in advance.
>
> Eugene
Previous Topic:canvas scrolling
Next Topic:Strange problem with SWT tables ...
Goto Forum:
  


Current Time: Fri Apr 26 22:27:13 GMT 2024

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

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

Back to the top