[OSX/Cocoa] Not receiving mouse motion events

17 views
Skip to first unread message

Chris Weisiger

unread,
Jun 13, 2012, 6:01:56 PM6/13/12
to wx-u...@googlegroups.com
I have a lot of widgets that are set up so that when the mouse moves
over them, text is displayed in a Panel instance (allowing for larger
text and better formatting than a simple tooltip can provide). This
worked fine in WX 2.8 with the Carbon build, but seems to have broken
entirely in WX 2.9 with the Cocoa build. Unfortunately I need the
Cocoa build for 64-bit compatibility.

Example app demonstrating the bug: http://pastebin.com/SrL89kXW

In wx 2.8.12.1 this prints a line of text every time the mouse moves
over the StaticText (in addition to clicks, click-drags, etc.). In wx
2.9.3.1 the only time I can get the text to print is if I click on the
text and then drag the mouse.

I did some searches and found this ticket that seems to be related:
http://trac.wxwidgets.org/ticket/12561

The Cocoa build on wxpython.org predates that ticket, though.
Downloading the source code (which took most of an hour as I couldn't
get above 35 KBps for some reason) and running ./configure I
eventually got this:

configure:19415: WARNING: gcc >= 4.2 cannot compile 10.4 compatible
code. Using gcc 4.0 instead.
checking if C compiler works with SDK/version options... configure:
error: no. Try a different SDK

I find building and installing stuff from source by hand to be
intensely aggravating as a general rule (hooray for package
managers!), so I'm stopping there. Any idea when wxpython.org will
have an updated build so I can check to see if this is actually fixed?
My program is something like 90% less usable without proper inline
help.

-Chris

Hector

unread,
Jul 31, 2012, 11:56:09 AM7/31/12
to wx-u...@googlegroups.com
There was a bug when you used CaptureMouse().

It's now fixed.

Reply all
Reply to author
Forward
0 new messages