Update of /cvsroot/wgui/wgui/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21751/tests
Modified Files:
TestView1.cpp
Log Message:
Added CFileDialog files, CFrame modal mode, cleaned up some code, and fixed some minor issues.
Index: TestView1.cpp
===================================================================
RCS file: /cvsroot/wgui/wgui/tests/TestView1.cpp,v
retrieving revision 1.83
retrieving revision 1.84
diff -C2 -d -r1.83 -r1.84
*** TestView1.cpp 26 Sep 2005 21:09:25 -0000 1.83
--- TestView1.cpp 27 Sep 2005 19:00:01 -0000 1.84
***************
*** 34,37 ****
--- 34,38 ----
const long int SHOW_MESSAGE_BOX_1 = 16;
const long int SHOW_MESSAGE_BOX_2 = 17;
+ const long int SHOW_MESSAGE_BOX_3 = 18;
CTestWindow::CTestWindow(const wGui::CRect& WindowRect, wGui::CWindow* pParent) :
***************
*** 79,82 ****
--- 80,84 ----
pSubmenu->InsertMenuItem(wGui::SMenuItem("Show Message Box", SHOW_MESSAGE_BOX_1));
pSubmenu->InsertMenuItem(wGui::SMenuItem("Show A Different Message Box", SHOW_MESSAGE_BOX_2));
+ pSubmenu->InsertMenuItem(wGui::SMenuItem("Show A Modal Message Box", SHOW_MESSAGE_BOX_3));
pSubmenu->InsertMenuItem(wGui::SMenuItem()); // instert a spacer
pSubmenu->InsertMenuItem(wGui::SMenuItem("Exit", EXIT_APP));
***************
*** 337,340 ****
--- 339,348 ----
new wGui::CMessageBox(this, 0, "Message Box 2", "Show another message box?", wGui::CMessageBox::BUTTON_YES | wGui::CMessageBox::BUTTON_NO);
break;
+ case SHOW_MESSAGE_BOX_3:
+ {
+ wGui::CMessageBox* pMessageBox = new wGui::CMessageBox(this, 0, "Modal Message Box", "This message box is modal.");
+ pMessageBox->SetModal(true);
+ break;
+ }
default:
break;
|