X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5bb31e3561ca74ee3e1e5f3293ed3201c33dcce8..d86c187031547bd2f0604adddef273deedea7907:/docs/latex/wx/tvalidat.tex diff --git a/docs/latex/wx/tvalidat.tex b/docs/latex/wx/tvalidat.tex index f0ccdf6978..93105606a5 100644 --- a/docs/latex/wx/tvalidat.tex +++ b/docs/latex/wx/tvalidat.tex @@ -66,7 +66,7 @@ are passed by reference to window constructors, and must therefore be cloned int You can optionally define event handlers for the validator, to implement filtering. These handlers will capture events before the control itself does. -For an example implementation, see the valtext.h and valtext.cpp files in the wxWindows library. +For an example implementation, see the valtext.h and valtext.cpp files in the wxWidgets library. \wxheading{How validators interact with dialogs} @@ -101,16 +101,16 @@ this: \begin{verbatim} void wxDialog::OnOK(wxCommandEvent& event) { - if ( Validate() && TransferDataFromWindow() ) - { + if ( Validate() && TransferDataFromWindow() ) + { if ( IsModal() ) EndModal(wxID_OK); else { - SetReturnCode(wxID_OK); - this->Show(false); + SetReturnCode(wxID_OK); + this->Show(false); } - } + } } \end{verbatim}