ScrolledWindow and wx.EVT_LEAVE_WINDOW

Posted by Joril on Stack Overflow See other posts from Stack Overflow or by Joril
Published on 2009-01-29T16:30:05Z Indexed on 2010/05/22 1:10 UTC
Read the original article Hit count: 353

Filed under:
|

Hi everyone!
I have a frame with a textctrl. When the mouse enters the textctrl (EVT_ENTER_WINDOW) I show a PopupWindow on top of the textctrl, and when the mouse leaves the popup (EVT_LEAVE_WINDOW) I hide it again.

Everything works fine, except when inside the PopupWindow there's a ScrolledWindow with shown scrollbars. The EVT_LEAVE_WINDOW gets fired when I move the mouse on top of a scrollbar, so it looks like wxPython thinks the scrollbars are not part of the scrolledwindow.. :/ I tried binding the event to the popup or the scrollwindow itself, but nothing changes.. Is there a way I could get around this?

Many thanks!

(wxPython 2.8.8.0 on Xubuntu 8.10)

© Stack Overflow or respective owner

Related posts about wxpython

Related posts about wxwidgets