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:
@@ -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
|
||||
|
Reference in New Issue
Block a user