our class was originally learning C languge with console, and our prof. suddenly decides
it's a good idea to shift to C++ and Wxwidgets without a warning then gave a very few
examples (basics of the basics) and immediately gave us Laboratory Activities to do.
-------------------------------------------------------------------------------------------------------------
We were only shown that to Output a result, you should use SetValue();
The SetValue only displays the last %s, which is textbox3 and I cant find how to
output all 3 strings in the resultbox.
Code: Select all
wxString textbox1;
wxString textbox2;
wxString textbox3;
textbox1= firstbox->getvalue();
textbox2= secondbox->getvalue();
textbox3= thirdbox->getvalue();
resultbox->SetValue(("%s \n %s \n %s", textbox1, textbox2, textbox3));
We were suppose to get the strings on first to third box then output them as seen below in the "resultbox" in multiple lines.
Code: Select all
String in firstbox.
String in secondbox.
String in thirdbox.