Update of /cvsroot/smartwin/SmartWin/tests/NotePad
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14561
Modified Files:
MainWindow.cpp
Log Message:
Add ES_AUTOHSCROLL | ES_AUTOVSCROLL so text area does not lockup after loading a file.
Index: MainWindow.cpp
===================================================================
RCS file: /cvsroot/smartwin/SmartWin/tests/NotePad/MainWindow.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- MainWindow.cpp 9 Jun 2007 19:32:03 -0000 1.17
+++ MainWindow.cpp 17 Jun 2007 03:03:09 -0000 1.18
@@ -169,11 +169,11 @@
WidgetTextBox::Seed textBoxCS;
- textBoxCS.style = ES_MULTILINE | ES_WANTRETURN | WS_VISIBLE;
+ textBoxCS.style = ES_MULTILINE | ES_WANTRETURN | WS_VISIBLE | ES_AUTOHSCROLL | ES_AUTOVSCROLL ;
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->setTextLimit( 1000000 ); // Allow large files to be edited.
itsTextField->setScrollBarHorizontally();
itsTextField->setScrollBarVertically();
|