No problem
Code:
/////////////////////////////////////////
function check_panel()
{
if((mouse_pos.x < selectionPan.pos_x
|| mouse_pos.x > selectionPan.pos_x + bmap_width(selectionPan.bmap))
|| (mouse_pos.y < selectionPan.pos_y
|| mouse_pos.y > selectionPan.pos_y + bmap_height(selectionPan.bmap)))
{
selectionPan.visible = off;
}
}
function init_mouse()
{
check_panel();
wait(1);
mouse_toggle();
}
/////////////////////////////////////////
on_mouse_left = check_panel;