on_close

The event is executed when the application window close icon is clicked at.

Example:

function quit() { sys_exit(NULL); }

void main() 
{
   on_close = quit;
   ...

See also:

on_maximize, on_click, on_mouse_left, on_mouse_stop, on_joy, on_f1, on_anykey, on_client, on_server

► latest version online