Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Tree Item with two Images , is it possible(Is it possible to render a tree i tem with two Images at right and left side of the label)
icon3.gif  SWT Tree Item with two Images , is it possible [message #674770] Sat, 28 May 2011 11:28 Go to next message
Payam Mising name is currently offline Payam Mising nameFriend
Messages: 4
Registered: May 2011
Junior Member
Is it possible to render a tree item with two Images at right and left

Image--Text--Image

I would like to gave the appearance of a down arrow t the second arrow and attach a menu.
Re: SWT Tree Item with two Images , is it possible [message #675176 is a reply to message #674770] Mon, 30 May 2011 13:56 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
For an example of drawing an image following a Table/Tree item's text see
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet220.java?view=co .
To set set the image that comes before the text just use the usual
TreeItem.setImage().

Grant


"Payam" <forums-noreply@eclipse.org> wrote in message
news:irqlo3$qp0$1@news.eclipse.org...
> Is it possible to render a tree item with two Images at right and left
>
> Image--Text--Image
>
> I would like to gave the appearance of a down arrow t the second arrow and
> attach a menu.
Previous Topic:Java SWT x64 deploy problem
Next Topic:Master/Detail Form block in View?
Goto Forum:
  


Current Time: Wed Apr 24 23:35:57 GMT 2024

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

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

Back to the top