]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/textdlgg.cpp
restored old casts (there was a reason for them)
[wxWidgets.git] / src / generic / textdlgg.cpp
index d34210a7c9f6319fe9537b5a67cbc6877fe54b21..5eadd8e01812f50ed79c398b4ee53783686b53ff 100644 (file)
@@ -28,9 +28,9 @@
     #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-    #include <stdio.h>
+#if wxUSE_TEXTDLG
 
+#ifndef WX_PRECOMP
     #include "wx/utils.h"
     #include "wx/dialog.h"
     #include "wx/button.h"
@@ -119,3 +119,12 @@ void wxTextEntryDialog::OnOK(wxCommandEvent& WXUNUSED(event) )
 
     EndModal(wxID_OK);
 }
+
+void wxTextEntryDialog::SetValue(const wxString& val)
+{
+    m_value = val;
+
+    m_textctrl->SetValue(val);
+}
+
+#endif // wxUSE_TEXTDLG