Well there is no invalid pointer crash with the code that you posted, but it caused a new problem: the panels are sorted in reverse order. Clicking on a panel now sorts it to the bottom layer lol.


Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.