Logo Search packages:      
Sourcecode: saga version File versions  Download package

wxValidator * wxFloatProperty::DoGetValidator (  )  const [protected, virtual]

Returns pointer to the wxValidator that should be used with the editor of this property (NULL for no validator). Setting validator explicitly via SetPropertyValidator will override this.

In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):

        wxValidator* wxMyPropertyClass::DoGetValidator () const

            wxMyValidator* validator = new wxMyValidator(...);

            ... prepare validator...


You can get common filename validator by returning wxFileProperty::GetClassValidator(). wxDirProperty, for example, uses it.

Reimplemented from wxPGProperty.

Definition at line 875 of file props.cpp.

    return wxIntProperty::GetClassValidator();

Generated by  Doxygen 1.6.0   Back to index