Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Iconic View in Table Viewer
Iconic View in Table Viewer [message #463819] Fri, 16 February 2007 01:24 Go to next message
Eclipse UserFriend
Originally posted by: minnu_hari.yahoo.co.in

Hi All,

I have a tree explorer which displays some data(each treeItem is
displayed as some text along with some ICON).. and I registered this as a
selectionProvider... And I have a SWT table which implements
ISelectionListener..

When I click on some tree node it displays all its child nodes in
Table...
In Table I am able to display the all child nodes of the treeItem along
with some text and its corresponding image(side by side like item1 + some
image)...

I want to have the image under that some text exactly like a Icon View
in the windows explorer.....

Please give me an idea on how to get this....


Thanks in advance,
Sujatha
Re: Iconic View in Table Viewer [message #463831 is a reply to message #463819] Fri, 16 February 2007 06:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: minnu_hari.yahoo.co.in

Hi,

Is it possible to set the image like that.....
Re: Iconic View in Table Viewer [message #463834 is a reply to message #463831] Fri, 16 February 2007 06:28 Go to previous message
Eclipse UserFriend
Hi,

You need to use owner draw for this.
http://www.eclipse.org/articles/Article-CustomDrawingTableAn dTreeItems/customDraw.htm

Another solution might be one of the nebula controls I think there was a
image-viewer component proposed but I don't know if it already has been
integrated (http://sourceforge.net/projects/sharemedia) maybe this
supports Text + Image? A problem with the current SWT-Table is that if
you have many different images you'll maybe run out of System-Resources
because all images are loaded and not only those visible in the table.

For a discussion about this look at:
http://tom-eclipse-dev.blogspot.com/2007/01/what-items-are-v isible-in-tabletree.html

Tom

Mithin schrieb:
> Hi,
>
> Is it possible to set the image like that.....
>
Previous Topic:Enable/Disable Action in View ToolBar
Next Topic:How to add Showview menu in my RCP application
Goto Forum:
  


Current Time: Wed Mar 26 08:11:37 EDT 2025

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

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

Back to the top