X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/141794f13fc943742ac9cf33d5d4d16b7c96e754..ccef4c3ad16fe5bf4365569c431f1208d79eb0ef:/docs/doxygen/overviews/validator.h?ds=sidebyside diff --git a/docs/doxygen/overviews/validator.h b/docs/doxygen/overviews/validator.h index 5791ca6193..cf2b843898 100644 --- a/docs/doxygen/overviews/validator.h +++ b/docs/doxygen/overviews/validator.h @@ -2,25 +2,14 @@ // Name: validator.h // Purpose: topic overview // Author: wxWidgets team -// RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @page overview_validator wxValidator Overview -Classes: wxValidator, wxTextValidator, wxGenericValidator - -@li @ref overview_validator_intro -@li @ref overview_validator_anatomy -@li @ref overview_validator_dialogs - - -
- - -@section overview_validator_intro Example +@tableofcontents The aim of the validator concept is to make dialogs very much easier to write. A validator is an object that can be plugged into a control (such as a @@ -62,6 +51,10 @@ giving the error, and the dialog is not dismissed. Note that any wxWindow may have a validator; using the @c wxWS_EX_VALIDATE_RECURSIVELY style (see wxWindow extended styles) you can also implement recursive validation. +@see wxValidator, wxTextValidator, wxGenericValidator, wxIntegerValidator, + wxFloatingPointValidator + + @section overview_validator_anatomy Anatomy of a Validator @@ -90,12 +83,10 @@ internally. You can optionally define event handlers for the validator, to implement filtering. These handlers will capture events before the control itself does -(see @ref overview_eventhandling_processing). +(see @ref overview_events_processing). For an example implementation, see the @c valtext.h and @c valtext.cpp files in the wxWidgets library. -wxwindow::SetExtraStyle( wxWS_EX_VALIDATE_RECURSIVELY ) - @section overview_validator_dialogs How Validators Interact with Dialogs @@ -148,4 +139,3 @@ the controls setting validators, since validators can't be specified in a dialog resource. */ -