]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/valgen.cpp
No real change.
[wxWidgets.git] / src / common / valgen.cpp
index 02da993d2524cd15bef6679853757a899d04b76b..b4814ac7b05b1db33ea568245adb057f771ae0e6 100644 (file)
@@ -56,6 +56,8 @@
 
 #include "wx/valgen.h"
 
+IMPLEMENT_CLASS(wxGenericValidator, wxValidator)
+
 wxGenericValidator::wxGenericValidator(bool *val)
 {
     Initialize();
@@ -225,6 +227,10 @@ bool wxGenericValidator::TransferToWindow(void)
             {
                 pControl->SetStringSelection(* m_pString);
             }
+            else
+            {
+                pControl->SetValue(* m_pString);
+            }
             return TRUE;
         }
     } else