X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/180d62d808a1d23bbd1915fd5c6c07031f54323d..b02dd12239c8a59b9a545d9fcb04974f8ad02c6b:/interface/wx/validate.h diff --git a/interface/wx/validate.h b/interface/wx/validate.h index bb2077bcaa..fcaa6a76cb 100644 --- a/interface/wx/validate.h +++ b/interface/wx/validate.h @@ -3,7 +3,7 @@ // Purpose: interface of wxValidator // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -38,7 +38,8 @@ @stdobjects ::wxDefaultValidator - @see @ref overview_validator, wxTextValidator, wxGenericValidator + @see @ref overview_validator, wxTextValidator, wxGenericValidator, + wxIntegerValidator, wxFloatingPointValidator */ class wxValidator : public wxEvtHandler { @@ -74,8 +75,14 @@ public: /** This functions switches on or turns off the error sound produced by the validators if an invalid key is pressed. + + @since 2.9.1 + + @param suppress + If @true, error sound is not played when a validator detects an + error. If @false, error sound is enabled. */ - static void SetBellOnError(bool doIt = true); + static void SuppressBellOnError(bool suppress = true); /** Associates a window with the validator. @@ -125,5 +132,5 @@ public: /** An empty, "null" wxValidator instance. */ -wxValidator wxDefaultValidator; +const wxValidator wxDefaultValidator;