Re: mouse motion events



I replaced the set_events by add_events but the behaviour didn't change -
motion events are only received by the main window, but not  by
the ScrolledWindow. (or by the Image)

Jody

On Wed, May 28, 2008 at 10:41 PM, Paul Davis <paul linuxaudiosystems com> wrote:
>
> On Wed, 2008-05-28 at 13:35 +0200, jody wrote:
>> Hi
>>
>> I seem to be unable to get mouse motion events from a ScrolledWindow:
>>
>>     set_events(Gdk::POINTER_MOTION_MASK);
>>     m_scrollWin.set_events(Gdk::POINTER_MOTION_MASK);
>>     m_scrollWin.signal_motion_notify_event().connect(sigc::mem_fun(*this,
>> &stest::motion_action));
>>
>> or from a Gtk::Image inside the ScrolledWindow:
>>
>>     set_events(Gdk::POINTER_MOTION_MASK);
>
> consider using add_events() not set_events()
>
>
>
>


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