Re: combined mouse and button event in a drawing area
- From: victor-victor <nadaeck hotmail com>
- To: gtk-list gnome org
- Subject: Re: combined mouse and button event in a drawing area
- Date: Thu, 5 Jan 2012 19:28:10 -0800 (PST)
Hello paul
>> 1) my widget is a drawing area; the 2 signals are emited when I use the
>> mainWindow widget (that contains the drawingarea) but not the drawing
>> area
>> widget in itself; I don't see where is the problem;
>you set the event mask for the mainWindow and then you connected to
>signals emitted by mainWindow. what do you expect?
Well yes of course; I meant that when I replace 'mainWindow' by
'drawingArea' (the drawing area widget) at both locations, nothing happens
at all.
>> 2) I use the GDK_BUTTON_MOTION_MASK option because I want the mouse
>> motion
>> to be considered only when the mouse button is pressed; in my case, EVERY
>> mouse motion is reported...
>not sure why you think this mask does this.
As far as I understand, this mask allows to "receive pointer motion events
while any button is pressed " according to the gdk doc
(http://developer.gimp.org/api/2.0/gdk/gdk-Events.html)
Victor
--
View this message in context: http://old.nabble.com/combined-mouse-and-button-event-in-a-drawing-area-tp33090815p33090885.html
Sent from the Gtk+ - General mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]