Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: LonelySTar on September 25, 2007, 11:10:27 pm

Title: How to use the wxApp::FilterEvent function (as Keybinder does)
Post by: LonelySTar 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
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
Title: Re: How to use the wxApp::FilterEvent function (as Keybinder does)
Post by: LonelySTar 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