Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ScrolledComposite/Composite question
ScrolledComposite/Composite question [message #462765] Tue, 18 October 2005 21:43 Go to next message
Eclipse UserFriend
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] Tue, 18 October 2005 23:08 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 22:15:09 EDT 2025

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

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

Back to the top