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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!