on_close
The event is executed when the application window close icon
is clicked at.
Example:
function quit() { sys_exit(); }
on_close = quit;
See also:
on_click, on_mouse_left,
on_mouse_middle, on_mouse_right,
on_mouse_stop, on_joy,
on_f1, on_anykey, on_client,
on_server