1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStatusBar class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __TEXTDLGH_G__
13 #define __TEXTDLGH_G__
16 #pragma interface "textdlgg.h"
21 #include "wx/dialog.h"
23 class WXDLLEXPORT wxTextCtrl
;
25 // Handy dialog functions (will be converted into classes at some point)
26 WXDLLEXPORT_DATA(extern const wxChar
*) wxGetTextFromUserPromptStr
;
27 WXDLLEXPORT_DATA(extern const wxChar
*) wxEmptyString
;
29 class WXDLLEXPORT wxTextEntryDialog
: public wxDialog
31 DECLARE_DYNAMIC_CLASS(wxTextEntryDialog
)
34 wxTextEntryDialog(wxWindow
*parent
,
35 const wxString
& message
,
36 const wxString
& caption
= wxGetTextFromUserPromptStr
,
37 const wxString
& value
= wxEmptyString
,
38 long style
= wxOK
| wxCANCEL
| wxCENTRE
,
39 const wxPoint
& pos
= wxDefaultPosition
);
41 void SetValue(const wxString
& val
) { m_value
= val
; }
42 wxString
GetValue() const { return m_value
; }
44 // implementation only
45 void OnOK(wxCommandEvent
& event
);
48 wxTextCtrl
*m_textctrl
;
56 // ----------------------------------------------------------------------------
57 // function to get a string from user
58 // ----------------------------------------------------------------------------
61 wxGetTextFromUser(const wxString
& message
,
62 const wxString
& caption
= wxGetTextFromUserPromptStr
,
63 const wxString
& default_value
= wxEmptyString
,
64 wxWindow
*parent
= (wxWindow
*) NULL
,