on_click
The on_click function is executed when clicking left with the mouse pointer
somewhere within a VIEW, without hitting any object
or panel.
Type
Event
Example:
var mpos[2];
function store_mouse_pos()
{
mpos[0] = mouse_cursor.x;
mpos[1] = mouse_cursor.y;
}
void main() {
...
on_click = store_mouse_pos;
...
See also:
on_mouse_left, on_mouse_middle, on_mouse_right, on_mouse_stop, on_close, on_joy, on_f1, on_anykey, on_client, on_server
► latest
version online