Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is possible st. like: "Composite remove(Componet)" ?
Is possible st. like: "Composite remove(Componet)" ? [message #461696] Tue, 27 September 2005 12:46 Go to next message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
I have composite and childs in it. Now I want to remove one of the childs
from composite.

How to do that?

Thanks,
googler
Re: Is possible st. like: "Composite remove(Componet)" ? [message #461697 is a reply to message #461696] Tue, 27 September 2005 13:10 Go to previous messageGo to next message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
i think you either have to get with composite.getChildren() an array of
controls and to find your control in it by iterating.
the better way may be to use a collection and hold your children in it
(and maybe access them via identifiers set with setData()).
Re: Is possible st. like: "Composite remove(Componet)" ? [message #461698 is a reply to message #461696] Tue, 27 September 2005 13:13 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

John Cage wrote:
> I have composite and childs in it. Now I want to remove one of the childs
> from composite.

child.dispose()

Later,
PW


Re: Is possible st. like: "Composite remove(Componet)" ? [message #461699 is a reply to message #461697] Tue, 27 September 2005 13:15 Go to previous messageGo to next message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Thank you,

but but my college already helped me, so the control is removed by :
control.dispose();
:)

Br.
john Cage
Re: Is possible st. like: "Composite remove(Componet)" ? [message #461700 is a reply to message #461698] Tue, 27 September 2005 13:17 Go to previous message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Thank you,
it works

Br.
John Cage
Previous Topic:Progress Monitor (Job APIs)
Next Topic:Standalone SWT cheat sheet - puzzled
Goto Forum:
  


Current Time: Sun Sep 22 07:53:17 GMT 2019

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

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

Back to the top