PDA

View Full Version : Adding and removing components



alex1001
4 Mar 2010, 1:25 PM
HI,

When I remove a component from a window and add a new component to the same window all is fine.

If I want to add the previously removed component again to the window it doesnt work.

Can any one tell me if a component can be added again once it has been removed ?

Thanks,

Alex.

ShatyUT
4 Mar 2010, 2:58 PM
Assuming you are calling remove() on the window object, you may need to tell it not to auto-destroy the component. See the definition of the remove() method in the API. The remove() method returns the removed component too so you can use that to get it and hold onto it until it's time to add it back.