News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to use the wxApp::FilterEvent function (as Keybinder does)

Started by LonelySTar, September 25, 2007, 11:10:27 PM

Previous topic - Next topic

LonelySTar

Hello together,

I just discovered, that the keybinder plugin implements the wxApp::FilterEvent methode.
I want to do that too in the plugin which I am currently trying to write.
Keybinder implements a derived class from wxApp:

class wxBinderApp : public wxApp
{
(...)
public:
wxBinderApp() { m_pGlobalHdl = NULL; m_pGlobalBinder = NULL; }
virtual ~wxBinderApp() {}


//! The core of wxBinderApp.
int FilterEvent(wxEvent &ev);
(...)
};//wxBinderApp


But I can not find the place, where an instance of the class is created and where it is used as the base class for the app.

How is it done?
Thanks!
Nathan

LonelySTar

I just tried something:
I completly removed the wxBinderApp class from the keybinder plugin. It still compiles, it still runs. wxBinderApp seems to be a relict from a earlier version of the plugin.

But I am still wondering: Is it possible? Thanks!
Nathan