Re: how to handle mouse ...



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]