|
From: andrew7 <bd...@us...> - 2006-12-10 22:39:31
|
Update of /cvsroot/smartwin/SmartWin/tests/WidgetTextBox In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv27214/tests/WidgetTextBox Modified Files: Main.cpp Log Message: Establish the title after the effect of the onUpdate handler. Index: Main.cpp =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/WidgetTextBox/Main.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- Main.cpp 7 Dec 2006 13:46:11 -0000 1.17 +++ Main.cpp 10 Dec 2006 22:39:25 -0000 1.18 @@ -93,7 +93,8 @@ //non - resizable window windowCS.style ^= WS_SIZEBOX; - windowCS.caption = _T( "WidgetTextBox compile and execute test" ); + SmartUtil::tstring title= "WidgetTextBox compile and execute test"; + windowCS.caption = _T( title ); windowCS.background = CreateSolidBrush( RGB( 0, 0, 125 ) ); windowCS.location = rect; createWindow( windowCS ); @@ -120,6 +121,8 @@ // Show how to append text textBoxs[0]->addText( _T(" added text") ); textBoxs[5]->addTextLines( _T("\nadded text") ); + + setText( title ); // Start with original title. } // Discard all chars except 0-9, '-' and '.' |