- panel = new wxPanel(m_notebook);
- m_textentry = new MyTextCtrl( panel, -1, "Some text.", wxPoint(10,10), wxSize(320,28), //0);
- wxTE_PROCESS_ENTER);
- (*m_textentry) << " Appended.";
- m_textentry->SetInsertionPoint(0);
- m_textentry->WriteText( "Prepended. " );
-
- m_multitext = new MyTextCtrl( panel, ID_TEXT, "Some text.", wxPoint(10,50), wxSize(320,70), wxTE_MULTILINE );
- (*m_multitext) << " Appended.";
- m_multitext->SetInsertionPoint(0);
- m_multitext->WriteText( "Prepended. " );
- m_multitext->AppendText( "\nPress function keys for test different tests." );
-
- (*m_multitext) << "\nDoes it have cross cursor?";
- m_multitext->SetCursor(*wxCROSS_CURSOR);
-
- new MyTextCtrl( panel, -1, "This one is with wxTE_PROCESS_TAB style.", wxPoint(10,120), wxSize(320,70), wxTE_MULTILINE | wxTE_PROCESS_TAB);
-#if wxUSE_TOOLTIPS
- m_multitext->AppendText( "\nThis ctrl has a tooltip. " );
- m_multitext->SetToolTip("Press F1 here.");
-#endif // wxUSE_TOOLTIPS
-
- (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, "wx&Clipboard", wxPoint(345,100), wxSize(160,100) );
- (void)new wxButton( panel, ID_COPY_TEXT, "C&opy line 1", wxPoint(370,120), wxSize(110,30) );
- (void)new wxButton( panel, ID_PASTE_TEXT, "&Paste text", wxPoint(370,160), wxSize(110,30) );
- m_notebook->AddPage( panel, "wxTextCtrl" , FALSE, Image_Text );
-