X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a294c6d53ed8be5b92c31e1eb7e3366ba1642fa7..22fb32d5071b4a234cb600e50e59f971dd78d04a:/src/generic/textdlgg.cpp diff --git a/src/generic/textdlgg.cpp b/src/generic/textdlgg.cpp index d34210a7c9..5eadd8e018 100644 --- a/src/generic/textdlgg.cpp +++ b/src/generic/textdlgg.cpp @@ -28,9 +28,9 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP - #include +#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