Added wxPGProperty::OnValidationFailure(); needed it and some other tweaks to allow vetoing value changes of ComboBox editors

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-01-12 16:12:15 +00:00
parent cbc9abd710
commit d8812c6e0e
7 changed files with 60 additions and 6 deletions

View File

@@ -1294,12 +1294,8 @@ public:
To add your own validation failure behavior, override
wxPropertyGrid::DoOnValidationFailure().
*/
bool OnValidationFailure( wxPGProperty* property, wxVariant& invalidValue )
{
bool res = DoOnValidationFailure(property, invalidValue);
property->SetFlag(wxPG_PROP_INVALID_VALUE);
return res;
}
bool OnValidationFailure( wxPGProperty* property,
wxVariant& invalidValue );
/** Called to indicate property and editor has valid value now.
*/