Re: [gtkmm] mouse button event



>I'm looking for a way to find out if a mouse button was pressed
>and where it was clicked.
>
>I thought the button_press_event is responsible for that. But
>it seems that it doesn't work.
>
>The following code prints nothing if I click onto the window
>(using gtkmm 2.2.2-1)

you need to call add_events() for the window. top level windows by
default do not receive mouse events, IIRC.

--p



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