[fxruby-users] Data Targets and message handlers [was: Default double-click in FXTable?]

Jeroen van der Zijp jeroen at fox-toolkit.org
Tue Oct 10 10:59:56 EDT 2006

On Saturday 07 October 2006 07:15, Philippe Lang wrote:
> Hi,
> I have read that message handlers can return a value, either true or false, depending on if the handler actually did something, or not. In the latter case, the message is forwarded to the default message handler.
> I have tried this, and found something strange: in this code, decommenting:
>     @data_widget.connect(SEL_KEYPRESS) do |sender, selector, data|
>         puts d.code
>         false
>     end
> ... breaks the update of the textfield. The handler returns false in every case, it should have no effect at all, no?
> I'm I missing something maybe?

Do the same for the SEL_KEYRELEASE and it will work....

		- Jeroen

More information about the fxruby-users mailing list