Bring a Gadget to the Top (Z Order)

BlitzMax Forums/BlitzMax GUI Programming/Bring a Gadget to the Top (Z Order)

Is there a way to tell a panel to come to the top of all the other panels?

I have a deck of cards on draggable panels but they stay in REVERSE order. The panel created last is on BOTTOM.

I tried to recreate the panel for the one I wanted on top when I found out that the new one goes to the BOTTOM.

Please help.