Changed wxPropertyGrid default property validation failure behavior to more user-friendly wxPG_VFB_MARK_CELL | wxPG_VFB_SHOW_MESSAGEBOX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-07-04 08:53:07 +00:00
parent 8923cccda4
commit 4fb5dadb13
3 changed files with 11 additions and 3 deletions

View 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.