//
// These macros help creating DoGetValidator
#define WX_PG_DOGETVALIDATOR_ENTRY() \
- static wxValidator* s_ptr = (wxValidator*) NULL; \
+ static wxValidator* s_ptr = NULL; \
if ( s_ptr ) return s_ptr;
// Common function exit
// this take advantage of it.
virtual int GetChoiceSelection() const { return m_index; }
+ virtual void OnValidationFailure( wxVariant& pendingValue );
+
protected:
int GetIndex() const;
// Relies on ValidateValue being called always before OnSetValue
static int ms_nextIndex;
+ static int ms_prevIndex;
};
// -----------------------------------------------------------------------
DELIMCHAR, \
CUSTBUTTXT) \
wxValidator* PROPNAME::DoGetValidator () const \
-{ return (wxValidator*) NULL; }
+{ return NULL; }
// -----------------------------------------------------------------------
*/
virtual wxValidator* GetTextCtrlValidator() const
{
- return (wxValidator*) NULL;
+ return NULL;
}
// Returns true if array was actually modified