Re: how to handle mouse ...
- From: Andreas Scherf <scherfa web de>
- To: Marco Lettere <m lettere websynapsis com>
- Cc: "GTK-List" <gtk-list gnome org>
- Subject: Re: how to handle mouse ...
- Date: Thu, 27 Sep 2001 00:19:58 +0200
Am Freitag, 21. September 2001 10:12 schrieben Sie:
> I would like to handle mouse clicks (button1 and button2) on widgets
> such as pixmaps and progressbars how is this possible?
> thanx,
> M.
Hope this helps .... in myfunc you could check wich button was pressed
--------------------
eventb=gtk_event_box_new ();
gtk_signal_connect (GTK_OBJECT (eventb),
"button_press_event",GTK_SIGNAL_FUNC (myfunction), NULL);
...
define pixmap here ...
...
gtk_container_add (GTK_CONTAINER (eventb), pixmap);
----------------------
--
ICQ: 52910964
scherfa fh-trier de
scherfa web de
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]