Deriving from multiple classes derived from wxEvtHandler
Posted: Thu Apr 26, 2012 8:13 pm
Greetings!
I create my class ( wxMyPanel ) derived both from
wxPanel
wxMouseEventsManager
Every one of those classes derives from wxEvtHandler.
Then, while invoking Bind( wxEVT_PAINT, ...... ) in class constructor, I get one of the errors:
"Reference to 'Bind' is ambigious" ( when I call this->Bind() )
" 'wxEvtHandler' is an ambiguous base of 'wxMyPanel' " ( when I call either wxPanel::Bind() or wxMouEseventsManager::Bind() )
Is there any way to derive both from wxPanel and wxMouseEventsManager ?
How should I do it?
Thanks in advance!
Best regards!
I create my class ( wxMyPanel ) derived both from
wxPanel
wxMouseEventsManager
Every one of those classes derives from wxEvtHandler.
Then, while invoking Bind( wxEVT_PAINT, ...... ) in class constructor, I get one of the errors:
"Reference to 'Bind' is ambigious" ( when I call this->Bind() )
" 'wxEvtHandler' is an ambiguous base of 'wxMyPanel' " ( when I call either wxPanel::Bind() or wxMouEseventsManager::Bind() )
Is there any way to derive both from wxPanel and wxMouseEventsManager ?
How should I do it?
Thanks in advance!
Best regards!