Re: right-clic on gtkButton howto?

From: Date: Tue, 28 Oct 2003 23:03:21 +0000
Subject: Re: right-clic on gtkButton howto?
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4023@lists.php.net to get a copy of this message
      Hi Decapode,
In fact you can handle all these events with one callback. Go to : http://gtk.php.net/manual/en/gtk.gtkwidget.signal.button-press-event.php and you will see an short example. You can visit : http://gtk.php.net/manual/en/gdk.gdkevent.php http://gtk.php.net/manual/en/gdk.gdkeventbutton.php to see a description of GdkEvent and GdkEventButton which property you will handle - there is a usefull list of constants to use instead of digits ( 1, 2, 3) in a switch statement. regards, Radko Decapode Azur wrote:
hi, 2 questions this evening: - Howto make a sub-menu inside a main menu? - Howto make raise a new window from a right-clic on a gtkButton*? (in fact I would like to connect different callbacks on left, right and middle clic) Could someone give me simple samples exemples?


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