Re: [gtkmm] Gnome Canvas Item not getting Button press event



>I have a Canvas class that defines a method on_button_press_event, such
>that when it gets clicked it draws a circle. This  circle is an object
>of a class derived from Gnome::Canvas::Ellipse.
>
>The thing is that I would like the item to receive button press events,
>but it seems not to. It gets other events such as GDK_ENTER_NOTIFY or
>LEAVE. My on_event method is:

did you use set_events() or add_events() to define the events it would
receive ? many widgets do not receive BP or BR by default.




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