"Slow focus" when handling wxEVT_SET_FOCUS

Zokbor zokbor at gmail.com
Mon Dec 4 09:25:01 PST 2006


> Don't know the reason, but if you call event.Skip(), does
> the problem persist? We have changed the way wxGTK handles
> the case, when user code intercepts SetFocus(). I forgot
> in which version this change was made.

Calling event.Skip() does indeed solve the problem! Could you please
elaborate why I should call Skip() in the SetFocus() event handler? I
did not find this suggestion in Julian's "Cross-Platform GUI
Programming with wxWidgets" book.

Or is this merely a workaround for some oddity in the wxGTK code?

> OT: Does Ubuntu 6.06 really ship with 2.6.1? Is that because
>     there was no Debian package for 2.6.3, which in turn was
>     because - ah - forget it.

  ubuntu-6.06 $ sudo apt-get install wx-common wx2.6-doc wx2.6-examples
wx2.6-headers
  Reading package lists... Done
  Building dependency tree... Done
  wx-common is already the newest version.
  wx2.6-doc is already the newest version.
  wx2.6-examples is already the newest version.
  wx2.6-headers is already the newest version.
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

  ubuntu-6.06 $ wx-config --version
  2.6.1

Perhaps the new Ubuntu 6.10 ships with 2.6.3?

Thanks a lot for your help!
-- Zokbor







More information about the wx-users mailing list