Get window children

Hi
What I want to do is removing all the controls of a window when clicking on a button, so I guess I need to get all the children controls of that window, then destroy all of them. Could you tell me if there's a way of finding the children controls of a window (trough a for loop or something like that), then destroy them?
Thanks!
Last edited on
Just destroy the parent itself.
I don't want the window to be closed, only remove its children controls an leave it all clear.
Last edited on
Topic archived. No new replies allowed.