]> git.saurik.com Git - wxWidgets.git/commitdiff
Use default wxPropertyGrid validation failure behavior in the sample
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 25 Jul 2010 09:19:52 +0000 (09:19 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 25 Jul 2010 09:19:52 +0000 (09:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/propgrid/propgrid.cpp

index f910ac0c737d8b0aae7492f981631640ecddf3c2..a4fe375cc0abc52dd059867ffc9444b8795da0f8 100644 (file)
@@ -2180,7 +2180,9 @@ void FormMain::CreateGrid( int style, int extraStyle )
 
     pgman->SetExtraStyle(extraStyle);
 
-    m_pPropGridManager->SetValidationFailureBehavior( wxPG_VFB_BEEP | wxPG_VFB_MARK_CELL | wxPG_VFB_SHOW_MESSAGE );
+    // This is the default validation failure behavior
+    m_pPropGridManager->SetValidationFailureBehavior( wxPG_VFB_MARK_CELL |
+                                                      wxPG_VFB_SHOW_MESSAGEBOX );
 
     m_pPropGridManager->GetGrid()->SetVerticalSpacing( 2 );