[fxruby-users] FXScrollArea messages

Jannis Pohlmann info at sten-net.de
Mon May 16 14:02:35 EDT 2005


Hi Lyle, hi list.

I've got a few problems getting a subclass of FXScrollArea react on 
SEL_MOTION and SEL_LEFTBUTTONPRESS.

In the constructor I wrote

    FXMAPFUNC(SEL_MOTION, 0, "onMouseMove")
    FXMAPFUNC(SEL_LEFTBUTTONPRESS, 0, "onLeftClick")

I also tried

    self.connect(SEL_MOTION, method(:onMouseMove))
    self.connect(SEL_LEFTBUTTONPRESS, method(:onLeftClick))

But when I use this widget those handler functions are never called, even
if I call .setFocus on it.

Any ideas?

Regards,
Jannis


More information about the fxruby-users mailing list