Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
How to use the wxApp::FilterEvent function (as Keybinder does)
(1/1)
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:
--- Code: ---class wxBinderApp : public wxApp
{
(...)
public:
wxBinderApp() { m_pGlobalHdl = NULL; m_pGlobalBinder = NULL; }
virtual ~wxBinderApp() {}
//! The core of wxBinderApp.
int FilterEvent(wxEvent &ev);
(...)
};//wxBinderApp
--- End code ---
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
Navigation
[0] Message Index
Go to full version