Re: mouse clicks.

From: Date: Wed, 19 Feb 2003 16:22:01 +0000
Subject: Re: mouse clicks.
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3051@lists.php.net to get a copy of this message
http://gtk.php.net/manual/en/gdk.enum.gdkeventtype.php The double click is simply a different event type. A small prize to the first user to know which :)
From: Michael Bakunin <bakunin@autistici.org> To: php-gtk-general@lists.php.net Subject: Re: [PHP-GTK] mouse clicks. Date: Wed, 19 Feb 2003 15:43:33 +0100 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? -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________ Chat online in real time with MSN Messenger http://messenger.msn.co.uk

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