I added this options, but it still does not work...
If I add a button and I define the event handler for this button as follows:
void myClass::OnButton(wxCommandEvent& event)
{
wxKeyEvent kev(EVT_CHAR);
wxPostEvent(this, kev);
}
Then, by clicking on the button, I can fire the event handler for EVT_CHAR
So the handler would process the event... if it would get it.
Does anyone know why this event gets lost or not generated?
Any idea on how to find out, if the event gets generated?
Thank you
e.p
SOLVED!
m_terminal is the instance of wxTextCtrl contained in myClass.
m_terminal->Connect(id_terminal, wxEVT_CHAR, ...);
does exactly what I need :-)
Regards e.p