Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ScrolledComposite/Composite question
ScrolledComposite/Composite question [message #462765] Wed, 19 October 2005 01:43 Go to next message
Michael Tsai is currently offline Michael TsaiFriend
Messages: 10
Registered: July 2009
Junior Member
I am currently using a ScrolledComposite to display a row of images. I want the ScrolledComposite to refresh in a view but I am not sure how.

Is there a way to do this without disposing the original ScrolledComposite? Right now the images are being added onto the the old view everytime events are called to refresh the view. This is wrong. What I need it to reset or clean old images before displaying relevant items from this new event.

Please, any suggestions would be mostly appreciated.

Thanks
Re: ScrolledComposite/Composite question [message #462774 is a reply to message #462765] Wed, 19 October 2005 03:08 Go to previous message
Michael Tsai is currently offline Michael TsaiFriend
Messages: 10
Registered: July 2009
Junior Member
found out how to do this:

use getChildren() to retrieve all the controls in the composite and then for each control call dispose().
Previous Topic:list and bold items
Next Topic:org.eclipse.swt.widgets.TreeItem.setGrayed(boolean grayed)
Goto Forum:
  


Current Time: Thu Apr 25 16:55:35 GMT 2024

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

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

Back to the top