X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..e564aa153eb1dc5ebd9f8c9f5f055c2a49c15b05:/src/generic/textdlgg.cpp diff --git a/src/generic/textdlgg.cpp b/src/generic/textdlgg.cpp index 9b6a5b965e..5eadd8e018 100644 --- a/src/generic/textdlgg.cpp +++ b/src/generic/textdlgg.cpp @@ -31,8 +31,6 @@ #if wxUSE_TEXTDLG #ifndef WX_PRECOMP - #include - #include "wx/utils.h" #include "wx/dialog.h" #include "wx/button.h" @@ -122,4 +120,11 @@ 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