Re: Drawing area events
- From: Wolfgang Sourdeau <wolfgang ultim net>
- To: gtk-app-devel-list gnome org
- Subject: Re: Drawing area events
- Date: Wed, 25 Oct 2000 14:10:49 -0400
La plume légère, à Wed, Oct 25, 2000 at 08:41:44PM +0300, heure d'inpiration,
Juhana Sadeharju écrivait en ces mots:
Hello. I have one window with two drawing areas. A button press on DA 1
goes to DA 1, but the button release goes to DA 2 when the button is
released on DA 2.
You can use gdk_grab_pointer by catching the "button_press" event on your "DA's".
In the same call back calling gdk_grab_pointer, register a "button_release"
Don't forget to call gdk_window_set_events on your DA so that it will be
sensitive to those events.
A chicken is an egg's way of producing more eggs.
] [Thread Prev