Yes, the control is inside of a wxNoteBook.
In the main wxFrame constructor init, the notebook is created and passed to another class that uses it to add the textCtrl.
Code: Select all
ScopeControlFrame::ScopeControlFrame(const wxString& title):wxFrame(NULL, wxID_ANY, title),
m_notebook(new wxNotebook(this, wxID_ANY)),
m_viewWorkflow(this, m_notebook),
...
In the main wxFrame constructor
Code: Select all
this->Bind(wxEVT_TEXT_ENTER, &ScopeControlFrame::OnLaser1PowerPercentChange, this, ID_LASER_1_PERCENT_DISPLAY);
m_notebook->AddPage(m_viewWorkflow.getLayoutPanel(), "System Workflow");
In the m_viewWorkflow class, it creates a wxPanel with the notebook as its parent. The text ctrl is added to panel. id_percentSliderDisplay = ID_LASER_1_PERCENT_DISPLAY
Code: Select all
m_percentSliderDisplay = new wxTextCtrl(layoutPanel, id_percentSliderDisplay, wxT("0.00"), wxDefaultPosition, wxSize(60, -1), wxTE_PROCESS_ENTER | wxTE_RIGHT, numericValueValidator);
I am running on MacOSX 10.12.6 (16G1510), wxWidgets 3.1.1 and Xcode 9.0 (9A235)