33 #include <wx/textctrl.h>
34 #include <wx/valtext.h>
50 BEGIN_EVENT_TABLE(
ConsoleWindow::ConsoleWindowInputCtrl, wxTextCtrl)
51 EVT_KEY_DOWN(ConsoleWindowInputCtrl::onKeyDown)
68 wxTextCtrl(console, ID_INPUT, _T(""), wxDefaultPosition,
69 wxSize(500,30), wxTE_PROCESS_ENTER),
110 lineReader_ = &wxGetApp().simulation()->lineReader();
168 this,
ID_OUTPUT, _T(
""), wxDefaultPosition, wxDefaultSize,
169 wxTE_MULTILINE | wxTE_READONLY);
175 wxFlexGridSizer* sizer =
new wxFlexGridSizer(1, 0, 0);
176 sizer->AddGrowableCol(0);
177 sizer->AddGrowableRow(0);
180 sizer->Add(
inTextCtrl_, 0, wxGROW | wxALIGN_CENTER_VERTICAL | wxALL, 5);
182 sizer->SetSizeHints(
this);
197 std::string text =
event.data();
212 std::string error =
event.data();
228 if (event.GetKeyCode() == WXK_UP) {
235 }
else if (event.GetKeyCode() == WXK_DOWN) {