Create all panels with "event=panel_click;" and this function elsewhere.
Code:
function panel_click(PANEL* me_panel)
{
   ptr_remove(me_panel);
}
with renaming or inserting code as you wish.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial