Implement more detailed validation of wxArrayDoubleProperty in propgrid sample.

Added wxArrayDoubleProperty::ValidateValue() method checks if pending value is of proper type (wxArrayDouble). Pending value of improper type is used to signal that invalid numeric value was entered into the edit field.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Artur Wieczorek
2015-02-17 17:36:00 +00:00
parent f9876c519e
commit ac1d0a3a9d
2 changed files with 18 additions and 3 deletions

View File

@@ -127,6 +127,8 @@ public:
virtual void GenerateValueAsString ( wxString& target, int prec, bool removeZeroes ) const;
wxValidator* DoGetValidator() const wxOVERRIDE;
bool ValidateValue(wxVariant& value,
wxPGValidationInfo& validationInfo) const wxOVERRIDE;
protected:
wxString m_display; // Stores cache for displayed text