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: Fri, 6 Jan 2012 11:08:14 -0800 (PST)
Hello Richard
richard boaz-2 wrote:
>
> if you want to ignore the motion event when a button is not pressed, then
> check for this, and if there's nothing to do then return from the callback
> without doing anything. this will cost you milliseconds.
>
> ...
>
> and with gtk and friends, i've never found that a solution wasn't possible
> (yet, vs. my specific requirements, of course). sometimes you just need
> to
> be creative and "tease it out," as it were.
>
> richard
>
>
I found a solution by doing this :
I set up a "motion-notify-event" from the drawing area; then in the
GdkEventMotion event structure, I get the 'state' data; this represents the
state of the modifier keys, including mouse button...
Thank you for your help
Victor
--
View this message in context: http://old.nabble.com/combined-mouse-and-button-event-in-a-drawing-area-tp33090815p33095157.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]