[fxruby-users] FXScrollArea messages
info at sten-net.de
Wed May 18 16:14:52 EDT 2005
Jannis Pohlmann schrieb:
> 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?
Hey Lyle, didn't you see that message?
I don't want to be impatient, but this problem is really important for a
of mine. I browsed the FOX source and FXRuby's SWIG interfaces and noticed
that FXScrollArea doesn't implement the SEL_MOTION handler as FXCanvas
Obviously, FXTable (derived from FXScrollArea) is able to react on
FXScrollArea is a subclass of FXComposite which itself is a subclass of
FXWindow so shouldn't classes derived from FXScrollArea be able to handle
Same with other cursor messages like SEL...BUTTONPRESS,
SEL...BUTTONRELEASE or SEL_CLICKED.
Thanks in advance,
More information about the fxruby-users