Intercepting a Focus event - at wxWindow level Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
lowjoel
Part Of The Furniture
Part Of The Furniture
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Intercepting a Focus event - at wxWindow level

Post 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)
cg
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 201
Joined: Sun Aug 29, 2004 12:33 am
Location: Canada
Contact:

Post by cg »

Have a look at the wxEVT_KILL_FOCUS/wxEVT_SET_FOCUS events:

http://www.wxwidgets.org/manuals/2.6.2/ ... focusevent

HTH

Chris

------------------------------------------------------------
Chinook Developer Studio
*Free multiplatform IDE for BSD.Linux.Solaris.Windows*
http://www.degarrah.com/products/chinook/index.php

Zephyr Automated Test Runner
*Cross platform automated functional and regression testing*
http://www.degarrah.com/products/zephyr/index.php
------------------------------------------------------------
lowjoel
Part Of The Furniture
Part Of The Furniture
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post 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?
lowjoel
Part Of The Furniture
Part Of The Furniture
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel »

a rebuild did do the trick :?
Post Reply