Re: A problem with the button_press.
- From: Sven Neumann <sven gimp org>
- To: Ana Gutiérrez Pascual <al004180 alumail uji es>
- Cc: gtk-list gnome org
- Subject: Re: A problem with the button_press.
- Date: 09 Jan 2003 12:42:25 +0100
Hi,
Pascual <al004180 alumail uji es> writes:
> My problem is how can I know I'm clicking in any line of my rectangle
> 'cause when I used the function button_press_event there's nothing
> new, and I want to know when I'm clicking in the rectangle, any idea?
I suspect you are trying to tell us that your handler for
button_press_event is never called? That is not surprising because you
return TRUE from the generic event handler which means that you
successfully handled the event and that event handling should stop here.
I wonder why you connect to "event" and "button_press_event". You
should either do all event handling in the generic "event" handler (by
looking at the event type) or rather connect to "expose_event"
instead. In any case you should be careful about the return value of
your event handlers.
Salut, Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]