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"
22 // Handy dialog functions (will be converted into classes at some point)
23 WXDLLEXPORT_DATA(extern const wxChar
*) wxGetTextFromUserPromptStr
;
24 WXDLLEXPORT_DATA(extern const wxChar
*) wxEmptyString
;
26 #define wxID_TEXT 3000
28 class WXDLLEXPORT wxTextEntryDialog
: public wxDialog
30 DECLARE_DYNAMIC_CLASS(wxTextEntryDialog
)
35 wxTextEntryDialog(wxWindow
*parent
, const wxString
& message
, const wxString
& caption
= wxGetTextFromUserPromptStr
,
36 const wxString
& value
= wxEmptyString
, long style
= wxOK
|wxCANCEL
|wxCENTRE
, const wxPoint
& pos
= wxDefaultPosition
);
38 inline void SetValue(const wxString
& val
) { m_value
= val
; }
39 inline wxString
GetValue(void) const { return m_value
; }
41 void OnOK(wxCommandEvent
& event
);
46 wxString WXDLLEXPORT
wxGetTextFromUser(const wxString
& message
, const wxString
& caption
= wxGetTextFromUserPromptStr
,
47 const wxString
& default_value
= wxEmptyString
, wxWindow
*parent
= (wxWindow
*) NULL
,
48 int x
= -1, int y
= -1, bool centre
= TRUE
);