[fxruby-users] Strange behaviour of FXDataTarget connected to FXTextField

Lyle Johnson lyle at lylejohnson.name
Mon Apr 13 10:10:24 EDT 2009

On Sun, Apr 12, 2009 at 10:49 PM, kwicher <kwicher at gmail.com> wrote:

> I have a following small program in which I am enabling or disabling a
> button depending on the presence of text in the text filed. I am using
> the FXDataTarget connected to the text field. I also want to add
> possibility to paste the data into text filed upon pressing right
> mouse button etc. Now, everything works fine until I try to connect
> the mouse button action to the text field, then the FXDataTarget stops
> working.

Right. A widget (such as FXTextField) can only have one message target
at a time. The FXTextField cannot be connected to both the
FXDataTarget and the SEL_CHANGED handler (or the commented-out

More information about the fxruby-users mailing list