]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed wxPropertyGrid default property validation failure behavior to more user...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 4 Jul 2010 08:53:07 +0000 (08:53 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 4 Jul 2010 08:53:07 +0000 (08:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/doxygen/overviews/propgrid.h
include/wx/propgrid/propgrid.h
interface/wx/propgrid/propgrid.h

index 75565ee9d5860dc1248e56c3d3355ab7d3c2d9b4..9a40a468c74c7f257e748172e15675e0c5d637a8 100644 (file)
@@ -725,7 +725,7 @@ message.
                     event.Veto();
                     event.SetValidationFailureBehavior(wxPG_VFB_STAY_IN_PROPERTY |
                                                        wxPG_VFB_BEEP |
-                                                       wxPG_VFB_SHOW_MESSAGE);
+                                                       wxPG_VFB_SHOW_MESSAGEBOX);
                 }
             }
         }
@@ -979,6 +979,12 @@ without warnings or errors.
 
   - Extended window style wxPG_EX_LEGACY_VALIDATORS was removed.
 
+  - Default property validation failure behavior has been changed to
+    (wxPG_VFB_MARK_CELL | wxPG_VFB_SHOW_MESSAGEBOX), which means that the
+    cell is marked red and wxMessageBox is shown. This is more user-friendly
+    than the old behavior, which simply beeped and prevented leaving the
+    property editor until a valid value was entered.
+
   - wxPropertyGridManager now has same Get/SetSelection() semantics as
     wxPropertyGrid.
 
index d50bc95238aa3cff733b0d7a21fd7cbc74409a7b..7d37883174aff3d09e784209bb5d7b89427d444f 100644 (file)
@@ -415,7 +415,8 @@ wxPG_VFB_SHOW_MESSAGEBOX            = 0x10,
 wxPG_VFB_SHOW_MESSAGE_ON_STATUSBAR  = 0x20,
 
 /** Defaults. */
-wxPG_VFB_DEFAULT                    = wxPG_VFB_STAY_IN_PROPERTY|wxPG_VFB_BEEP,
+wxPG_VFB_DEFAULT                    = wxPG_VFB_MARK_CELL |
+                                      wxPG_VFB_SHOW_MESSAGEBOX,
 
 /** Only used internally. */
 wxPG_VFB_UNDEFINED                  = 0x80
index 754c1989b09e0a53ff3fd2247e5e5cfce434d4a5..2bed98ecf13d0546b014885e5128a419c69f2fa4 100644 (file)
@@ -260,7 +260,8 @@ wxPG_VFB_SHOW_MESSAGE_ON_STATUSBAR  = 0x20,
 /**
     Defaults.
 */
-wxPG_VFB_DEFAULT                    = wxPG_VFB_STAY_IN_PROPERTY|wxPG_VFB_BEEP,
+wxPG_VFB_DEFAULT                    = wxPG_VFB_MARK_CELL |
+                                      wxPG_VFB_SHOW_MESSAGEBOX,
 };
 
 /** @}