« 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 Sun, Apr 12, 2009 at 10:49 PM, kwicher <kwicher@...> 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
SEL_RIGHTBUTTONPRESS handler).
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

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