Question
This assignment is to add a wxTextCtrl pointer named textControl to wxEditorMain.h (under Headers). It should go in the private access members under the enum
This assignment is to add a wxTextCtrl pointer named textControl to wxEditorMain.h (under Headers). It should go in the private access members under the enum statement.
wxTextCtrl* textControl;
An identifier number needs to be created for textControl. This is done by adding as the second item in the enum list. All items in an enum list end with a comma except the last item. The enum list is also in wxEditorMain.h Frame Class declaration. ID_TextBox Add an instance of wxTextCtrl to wxEditorMain.cpp (under Sources) using the constructor statement. It should be placed inside the frame constructor just after the StatusBar:
textControl = new wxTextCtrl(this, ID_TextBox,
wxT(""), wxDefaultPosition, wxDefaultSize,
wxTE_MULTILINE | wxTE_RICH , wxDefaultValidator, wxTextCtrlNameStr);
Note that ID_TextBox is used in the constructor.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started