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"
20 #include "wx/dialog.h"
21 #include "wx/extdlg.h"
23 // Handy dialog functions (will be converted into classes at some point)
24 WXDLLEXPORT_DATA(extern const wxChar
*) wxGetTextFromUserPromptStr
;
25 WXDLLEXPORT_DATA(extern const wxChar
*) wxEmptyString
;
27 #define wxID_TEXT 3000
29 class WXDLLEXPORT wxTextEntryDialog
: public wxDialog
31 DECLARE_DYNAMIC_CLASS(wxTextEntryDialog
)
36 wxTextEntryDialog(wxWindow
*parent
, const wxString
& message
, const wxString
& caption
= wxGetTextFromUserPromptStr
,
37 const wxString
& value
= wxEmptyString
, long style
= wxOK
|wxCANCEL
|wxCENTRE
, const wxPoint
& pos
= wxDefaultPosition
);
39 inline void SetValue(const wxString
& val
) { m_value
= val
; }
40 inline wxString
GetValue(void) const { return m_value
; }
42 void OnOK(wxCommandEvent
& event
);
47 wxString WXDLLEXPORT
wxGetTextFromUser(const wxString
& message
, const wxString
& caption
= wxGetTextFromUserPromptStr
,
48 const wxString
& default_value
= wxEmptyString
, wxWindow
*parent
= (wxWindow
*) NULL
,
49 int x
= -1, int y
= -1, bool centre
= TRUE
);