Using C++ Create the minimal wxWidgets application called wxEditor Add a wxTextC
ID: 662599 • Letter: U
Question
Using C++
Create the minimal wxWidgets application called wxEditor
Add a wxTextCtrl pointer named textControl to wxEditorMain.h
wxTextCtrl* textControl;
An identifier number needs to be created for textControl. This is done by adding
ID_TextBox
to the enum list in wxEditorMain.h Frame Class declaration.
Add an instance of wxTextCtrl to wxEditorMain.cpp using the constructor as follows:
textControl = new wxTextCtrl(this, ID_TextBox,
wxT(""), wxDefaultPosition, wxDefaultSize,
wxTE_MULTILINE | wxTE_RICH , wxDefaultValidator, wxTextCtrlNameStr);
Note that ID_TextBox is used in the constructor. Where is the instance placed? Inside the Frame
constructor in wxEditorMain.cpp after the menu and status bars are created.
Need a print out of the result with some text and the actual code.
Explanation / Answer
------------------
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.