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

On Fri, Jul 09, 2004 at 02:34:42PM +0000, FHCARRON wrote:
> 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.

I think you might need to call add_events(Gdk::BUTTON_PRESS_MASK); to
get those events sent. (I'm not sure about canvas, but I do that for a
DrawingArea and it works...)


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