mouse motion events



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);
    m_scrollWin.set_events(Gdk::POINTER_MOTION_MASK);
    m_Image.set_events(Gdk::POINTER_MOTION_MASK);
    m_Image.signal_motion_notify_event().connect(sigc::mem_fun(*this,
&stest::motion_action));

I have no trouble getting the mouse motion from the top window, though...

So is it simply not possible to get mouse motion events from a
ScrollWindow or from an Image?

Thank You
  Jody


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