I can't handle panel on_click function. Here's an example:
////////////////////////////////////////
PANEL* test =
{
pos_x = 100;
pos_y = 100;
layer = 1;
bmap = panel_bmp;
flags = OVERLAY | VISIBLE;
on_click = mouse_use;
}
function mouse_use(panel)
{
test.pos_x = mouse_cursor.x;
test.pos_y = mouse_cursor.y;
}
////////////////////////////////////////////
On_click function doesn't call mouse_use() function. I work with A7.