|
From: andrew7 <bd...@us...> - 2006-11-05 20:23:20
|
Update of /cvsroot/smartwin/SmartWin/tests/WidgetTextBox In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv32585/tests/WidgetTextBox Modified Files: Main.cpp Log Message: Show why setTextLines is useful. Index: Main.cpp =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/WidgetTextBox/Main.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- Main.cpp 10 Sep 2006 08:42:40 -0000 1.14 +++ Main.cpp 5 Nov 2006 20:23:12 -0000 1.15 @@ -114,8 +114,8 @@ // Show how you can control the line formatting in textboxes std::stringstream ss; ss << "\"first\" << endl" << std::endl << "<< \"second\""; - textBoxs[5]->setText( ss.str() ); // setText does not handle endl. - // textBoxs[5]->setTextLines( ss.str() ); // setTextLines does. + // textBoxs[5]->setText( ss.str() ); // setText does not handle endl. + textBoxs[5]->setTextLines( ss.str() ); // setTextLines does. } // Discard all chars except 0-9, '-' and '.' |