Page 1 of 1

Intercepting a Focus event - at wxWindow level

Posted: Mon Nov 14, 2005 1:37 pm
by lowjoel
Does anyone by any chance know how to capture the focus loss event from within wxWindow (hence that function will be called for all derived classes?). I have a balloon tooltip that is programatically called upon, I want the balloon to disappear when focus has been lost from the window (whatever window it is, hence im using wxWindow)

Posted: Mon Nov 14, 2005 3:08 pm
by cg
Have a look at the wxEVT_KILL_FOCUS/wxEVT_SET_FOCUS events: ... focusevent



Chinook Developer Studio
*Free multiplatform IDE for BSD.Linux.Solaris.Windows*

Zephyr Automated Test Runner
*Cross platform automated functional and regression testing*

Posted: Mon Nov 14, 2005 11:21 pm
by lowjoel
i put an event table macro in wxWindowMSW... hmm... but it wasn't called nonetheless... does that mean I should rebuild the whole library?

Posted: Tue Nov 15, 2005 3:14 am
by lowjoel
a rebuild did do the trick :?