Author Topic: How to use the wxApp::FilterEvent function (as Keybinder does)  (Read 2726 times)

Offline LonelySTar

  • Multiple posting newcomer
  • *
  • Posts: 30
How to use the wxApp::FilterEvent function (as Keybinder does)
« on: September 25, 2007, 11:10:27 pm »
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:
Code: [Select]
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

Offline LonelySTar

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: How to use the wxApp::FilterEvent function (as Keybinder does)
« Reply #1 on: September 26, 2007, 10:21:50 am »
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