]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/tvalidat.tex
made wxADJUST_MINSIZE default
[wxWidgets.git] / docs / latex / wx / tvalidat.tex
index 291ba56429d6bd4870ebc8a60a168bc4ebfa4266..9cb7de38ec4cc3c21f81516da64b44ae892061bd 100644 (file)
@@ -19,7 +19,7 @@ or you can write your own.
 Here is an example of wxTextValidator usage.
 
 \begin{verbatim}
-  wxTextCtrl *txt1 = new wxTextCtrl(this, VALIDATE_TEXT, "",
+  wxTextCtrl *txt1 = new wxTextCtrl(this, -1, wxT(""),
     wxPoint(10, 10), wxSize(100, 80), 0,
     wxTextValidator(wxFILTER_ALPHA, &g_data.m_string));
 \end{verbatim}
@@ -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}