Re: mouse clicks.

From: Date: Wed, 19 Feb 2003 14:43:33 +0000
Subject: Re: mouse clicks.
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3049@lists.php.net to get a copy of this message
> function on_click($widget, $event, $data) { > switch($event->button) { > case 1: > /* do something appropriate to a left click */ > break; > case 2: > /* do something appropriate to a middle click */ > break; > case 3: > /* do something appropriate to a right click */ > break; > }} > > $widget->connect('button-press-event', 'on_click', $data); True. But, I have a problem with the dubble-click. Can you write this code?

« previous php.gtk.general (#3049) next »