I have been thinking about how to replace the PopupWindow control with a Frame for better compatability (Add Mac support) with the TextCtrlAutoComplete class. I was wondering if it would be possible to intercept mouse clicks before they activate the other control, so I can set a flag to keep it from closing the other window before it has a chance to activate. Is this possible?
Well, I suppose I will stick with PopupWindow because apparently there is already a $300 bounty for somebody to make the PopupWindow work on wxMac http://www.wxwidgets.org/wiki/index.php/WxWidgets_Bounties . So is anybody going to post the full current code listing to Wiki?
Edward Flick wrote:
···
I have been thinking about how to replace the PopupWindow control with a Frame for better compatability (Add Mac support) with the TextCtrlAutoComplete class. I was wondering if it would be possible to intercept mouse clicks before they activate the other control, so I can set a flag to keep it from closing the other window before it has a chance to activate. Is this possible?
Edward
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
I have been thinking about how to replace the PopupWindow control with a Frame for better compatability (Add Mac support) with the TextCtrlAutoComplete class. I was wondering if it would be possible to intercept mouse clicks before they activate the other control, so I can set a flag to keep it from closing the other window before it has a chance to activate. Is this possible?
I'm not sure if this is what you are asking for but window.CaptureMouse() will direct all mouse events to window even if they happen outsize of window's bounds. Don't forget to ReleaseMouse when you are done.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!