void OnEvent(wxMouseEvent& event)
Sent to the window when the user has initiated an event with the mouse. Derive your own class to handle this message. So far, only relevant to the wxCanvas class. See wxWindow::OnChar for character events, and also wxMouseEvent for how to access event information.