+void MyTextCtrl::OnTextEnter(wxCommandEvent& event)
+{
+ if ( !ms_logText )
+ return;
+
+ MyTextCtrl *win = (MyTextCtrl *)event.GetEventObject();
+ const wxChar *data = (const wxChar *)(win->GetClientData());
+ if ( data )
+ {
+ wxLogMessage(_T("Enter pressed in control '%s'"), data);
+ }
+ else
+ {
+ wxLogMessage(_T("Enter pressed in some control"));
+ }
+}
+