From: Jaakko Salli Date: Sun, 25 Jul 2010 09:19:52 +0000 (+0000) Subject: Use default wxPropertyGrid validation failure behavior in the sample X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ec88eb712ebf8c2cc37a3cc1dcc864d37578d958 Use default wxPropertyGrid validation failure behavior in the sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index f910ac0c73..a4fe375cc0 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -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 );