- wxTextCtrl *tc = new wxTextCtrl( panel, ID_TEXT, "Write text here.", wxPoint(10,10), wxSize(320,28));
- (*tc) << " More text.";
-// tc->SetBackgroundColour("wheat");
- m_multitext = new wxTextCtrl( panel, ID_TEXT, "And here.", wxPoint(10,50), wxSize(320,160), wxTE_MULTILINE );
- (*m_multitext) << " More text.";
- m_multitext->SetBackgroundColour("wheat");
- (void)new wxStaticBox( panel, -1, "wxClipboard", wxPoint(345,50), wxSize(160,145) );
- (void)new wxButton( panel, ID_COPY_TEXT, "Copy line 1", wxPoint(370,80), wxSize(110,30) );
- (void)new wxButton( panel, ID_PASTE_TEXT, "Paste text", wxPoint(370,140), wxSize(110,30) );
+ m_textentry = new MyTextCtrl( panel, ID_TEXT, "Write text here.", wxPoint(10,10), wxSize(320,28));
+ (*m_textentry) << " More text.";
+// m_textentry->SetBackgroundColour("wheat");
+ m_multitext = new MyTextCtrl( panel, ID_TEXT, "And here.", wxPoint(10,50), wxSize(320,160), wxTE_MULTILINE );
+ (*m_multitext) << " More text."
+ << "\nPress Fn keys to test different wxTextCtrl functions";
+// m_multitext->SetBackgroundColour("wheat");
+ (void)new wxStaticBox( panel, -1, "Move cursor to the end of:",
+ wxPoint(345, 0), wxSize(160, 100) );
+ (void)new wxButton(panel, ID_MOVE_END_ENTRY, "Text entry",
+ wxPoint(370, 20), wxSize(110, 30));
+ (void)new wxButton(panel, ID_MOVE_END_ZONE, "Text zone",
+ wxPoint(370, 60), wxSize(110, 30));
+ (void)new wxStaticBox( panel, -1, "wxClipboard", wxPoint(345,120), wxSize(160,100) );
+ (void)new wxButton( panel, ID_COPY_TEXT, "Copy line 1", wxPoint(370,140), wxSize(110,30) );
+ (void)new wxButton( panel, ID_PASTE_TEXT, "Paste text", wxPoint(370,180), wxSize(110,30) );