How can I bring certain gadgets to the front?

Blitz3D Forums/Blitz3D Programming/How can I bring certain gadgets to the front?

Tried that. if that is supposed to work then im doing something wrong, and i dont think i am...

How would i iterate through them and find the parents correctly though, my current loop skeeps finding the same one and causing a stack overflow :S