Lines Matching defs:MyTextCtrl
60 class MyTextCtrl : public wxTextCtrl
63 MyTextCtrl(wxWindow *parent, wxWindowID id, const wxString &value,
136 MyTextCtrl *m_text;
137 MyTextCtrl *m_password;
138 MyTextCtrl *m_enter;
139 MyTextCtrl *m_tab;
140 MyTextCtrl *m_readonly;
141 MyTextCtrl *m_limited;
143 MyTextCtrl *m_multitext;
144 MyTextCtrl *m_horizontal;
146 MyTextCtrl *m_textrich;
270 MyTextCtrl::ms_logKey = event.IsChecked();
275 MyTextCtrl::ms_logChar = event.IsChecked();
280 MyTextCtrl::ms_logMouse = event.IsChecked();
285 MyTextCtrl::ms_logText = event.IsChecked();
290 MyTextCtrl::ms_logFocus = event.IsChecked();
295 MyTextCtrl::ms_logClip = event.IsChecked();
510 MyTextCtrl::ms_logClip =
511 MyTextCtrl::ms_logText = true;
513 menuLog->Check(TEXT_LOG_KEY, MyTextCtrl::ms_logKey);
514 menuLog->Check(TEXT_LOG_CHAR, MyTextCtrl::ms_logChar);
515 menuLog->Check(TEXT_LOG_TEXT, MyTextCtrl::ms_logText);
531 // MyTextCtrl
534 BEGIN_EVENT_TABLE(MyTextCtrl, wxTextCtrl)
535 EVT_KEY_DOWN(MyTextCtrl::OnKeyDown)
536 EVT_KEY_UP(MyTextCtrl::OnKeyUp)
537 EVT_CHAR(MyTextCtrl::OnChar)
539 EVT_TEXT(wxID_ANY, MyTextCtrl::OnText)
540 EVT_TEXT_ENTER(wxID_ANY, MyTextCtrl::OnTextEnter)
541 EVT_TEXT_URL(wxID_ANY, MyTextCtrl::OnTextURL)
542 EVT_TEXT_MAXLEN(wxID_ANY, MyTextCtrl::OnTextMaxLen)
543 EVT_TEXT_CUT(wxID_ANY, MyTextCtrl::OnTextCut)
544 EVT_TEXT_COPY(wxID_ANY, MyTextCtrl::OnTextCopy)
545 EVT_TEXT_PASTE(wxID_ANY, MyTextCtrl::OnTextPaste)
547 EVT_MOUSE_EVENTS(MyTextCtrl::OnMouseEvent)
549 EVT_SET_FOCUS(MyTextCtrl::OnSetFocus)
550 EVT_KILL_FOCUS(MyTextCtrl::OnKillFocus)
553 bool MyTextCtrl::ms_logKey = false;
554 bool MyTextCtrl::ms_logChar = false;
555 bool MyTextCtrl::ms_logMouse = false;
556 bool MyTextCtrl::ms_logText = false;
557 bool MyTextCtrl::ms_logFocus = false;
558 bool MyTextCtrl::ms_logClip = false;
560 void MyTextCtrl::LogKeyEvent(const wxChar *name, wxKeyEvent& event) const
725 void MyTextCtrl::OnMouseEvent(wxMouseEvent& ev)
772 void MyTextCtrl::OnSetFocus(wxFocusEvent& event)
780 void MyTextCtrl::OnKillFocus(wxFocusEvent& event)
788 void MyTextCtrl::OnText(wxCommandEvent& event)
793 MyTextCtrl *win = (MyTextCtrl *)event.GetEventObject();
807 void MyTextCtrl::OnTextEnter(wxCommandEvent& event)
812 MyTextCtrl *win = (MyTextCtrl *)event.GetEventObject();
824 void MyTextCtrl::OnTextMaxLen(wxCommandEvent& WXUNUSED(event))
830 void MyTextCtrl::OnTextCut(wxClipboardTextEvent& event)
835 void MyTextCtrl::OnTextCopy(wxClipboardTextEvent& event)
840 void MyTextCtrl::OnTextPaste(wxClipboardTextEvent& event)
845 void MyTextCtrl::LogClipEvent(const wxChar *what, wxClipboardTextEvent& event)
862 void MyTextCtrl::OnTextURL(wxTextUrlEvent& event)
878 void MyTextCtrl::OnChar(wxKeyEvent& event)
886 void MyTextCtrl::OnKeyUp(wxKeyEvent& event)
894 void MyTextCtrl::OnKeyDown(wxKeyEvent& event)
1009 m_text = new MyTextCtrl( this, wxID_ANY, _T("Single line."),
1018 m_password = new MyTextCtrl( this, wxID_ANY, _T(""),
1021 m_readonly = new MyTextCtrl( this, wxID_ANY, _T("Read only"),
1024 m_limited = new MyTextCtrl(this, wxID_ANY, _T("Max 8 ch"),
1030 m_horizontal = new MyTextCtrl( this, wxID_ANY, _T("Multiline text control with a horizontal scrollbar.\n"),
1068 m_multitext = new MyTextCtrl( this, wxID_ANY, _T("Multi line."),
1081 m_tab = new MyTextCtrl( this, 100, _T("Multiline, allow <TAB> processing."),
1085 m_enter = new MyTextCtrl( this, 100, _T("Multiline, allow <ENTER> processing."),
1089 m_textrich = new MyTextCtrl(this, wxID_ANY, _T("Allows more than 30Kb of text\n")