|
From: andrew7 <bd...@us...> - 2007-06-09 19:32:06
|
Update of /cvsroot/smartwin/SmartWin/tests/NotePad In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16455 Modified Files: MainWindow.cpp Log Message: Add test of setTextLimit, the way to limit the size of text that goes in a window. Index: MainWindow.cpp =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/NotePad/MainWindow.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- MainWindow.cpp 5 May 2006 17:21:44 -0000 1.16 +++ MainWindow.cpp 9 Jun 2007 19:32:03 -0000 1.17 @@ -173,6 +173,7 @@ textBoxCS.exStyle = WS_EX_CLIENTEDGE; textBoxCS.font = sw::createFont( _T( "Courier New" ), 16, 0, 1, ANSI_CHARSET, false, false, false, 0, OUT_DEFAULT_PRECIS ); itsTextField = createTextBox( textBoxCS ); + itsTextField->setTextLimit( 100000 ); // Allow large files to be edited. itsTextField->setScrollBarHorizontally(); itsTextField->setScrollBarVertically(); |