if obove doesen´t work try
PANEL* green_button =
{
layer = 10;
button = 88, 10, green_sprite_click, green_sprite, green_sprite_over, NULL, NULL, NULL;
flags = VISIBLE | OVERLAY;
}
and in main loop
while(1)
{
mouse_pos.x = mouse_cursor.x;
mouse_pos.y = mouse_cursor.y;
wait(2);
}