]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/controls.cpp
Added ODBC classes manual (Word 97).
[wxWidgets.git] / samples / controls / controls.cpp
index 004eff2b84dabcce5771cde67f542dc5eb8f7741..7ecbdf18d92f6d1335d2331459b3317f2a1d267d 100644 (file)
@@ -133,6 +133,8 @@ const  ID_CHOICE_APPEND     = 124;
 
 const  ID_COMBO             = 140;
 
+const  ID_TEXT              = 150;
+
 BEGIN_EVENT_TABLE(MyPanel, wxPanel)
   EVT_SIZE      (                       MyPanel::OnSize)
   EVT_LISTBOX   (ID_LISTBOX,            MyPanel::OnListBox)
@@ -177,6 +179,9 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) :
   panel = new wxPanel(m_notebook);
   m_combo = new wxComboBox( panel, ID_COMBO, "This", wxPoint(10,10), wxSize(120,-1), 9, choices );
   m_notebook->AddPage(panel, "wxComboBox");
+  
+  wxTextCtrl *text = new wxTextCtrl( m_notebook, ID_TEXT, "Write text here.", wxPoint(10,10), wxSize(120,100), wxTE_MULTILINE );
+  m_notebook->AddPage( text, "wxTextCtrl" );
 }
 
 void MyPanel::OnSize( wxSizeEvent& WXUNUSED(event) )