« Return to Thread: Strange behaviour of FXDataTarget connected to FXTextField

Re: Strange behaviour of FXDataTarget connected to FXTextField

by Lyle Johnson-4 :: Rate this Message:

Reply to Author | View in Thread

On Tue, Apr 14, 2009 at 11:24 AM, XY$ <kwicher@...> wrote:

> If it is like that, what should be the target for the FXText so that I
> can handle SEL_RIGHTBUTTONRELEASE message sent by it? Should the
> target be self?

Well, there's nothing special about it, but I'd probably just use an
anonymous handler, e.g.

    text_widget.connect(SEL_RIGHTBUTTONRELEASE) do
      # handle right button release on text widget
    end

Hope this helps,

Lyle
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

 « Return to Thread: Strange behaviour of FXDataTarget connected to FXTextField