Re: Drawing area events

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.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]