]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/propgrid/property.h
add support for wxStrnlen for those platforms where it's available
[wxWidgets.git] / include / wx / propgrid / property.h
index 28535bb6445768c83a752bf33298726378ed12da..176db3d61ee0e0c1af93e891659222d32772cbb6 100644 (file)
@@ -1423,6 +1423,15 @@ public:
     */
     virtual wxPGEditorDialogAdapter* GetEditorDialog() const;
 
+    /**
+        Called whenever validation has failed with given pending value.
+
+        @remarks If you implement this in your custom property class, please
+                 remember to call the baser implementation as well, since they
+                 may use it to revert property into pre-change state.
+    */
+    virtual void OnValidationFailure( wxVariant& pendingValue );
+
     /** Append a new choice to property's list of choices.
     */
     int AddChoice( const wxString& label, int value = wxPG_INVALID_VALUE )
@@ -2222,8 +2231,6 @@ protected:
     // moved to it.
     void SubPropsChanged( int oldSelInd = -1 );
 
-    void UpdateControl( wxWindow* editorWnd );
-
     int GetY2( int lh ) const;
 
     wxString                    m_label;