EVT_CHAR(wxTextCtrl::OnChar)
END_EVENT_TABLE()
+#ifndef NO_TEXT_WINDOW_STREAM
wxTextCtrl::wxTextCtrl() : streambuf()
{
if (allocate()) setp(base(),ebuf());
m_modified = FALSE;
}
+#else
+wxTextCtrl::wxTextCtrl()
+{
+ m_modified = FALSE;
+}
+#endif
+#ifndef NO_TEXT_WINDOW_STREAM
wxTextCtrl::wxTextCtrl( wxWindow *parent, wxWindowID id, const wxString &value,
const wxPoint &pos, const wxSize &size,
int style, const wxValidator& validator, const wxString &name ) : streambuf()
m_modified = FALSE;
Create( parent, id, value, pos, size, style, validator, name );
}
+#else
+wxTextCtrl::wxTextCtrl( wxWindow *parent, wxWindowID id, const wxString &value,
+ const wxPoint &pos, const wxSize &size,
+ int style, const wxValidator& validator, const wxString &name )
+{
+ m_modified = FALSE;
+ Create( parent, id, value, pos, size, style, validator, name );
+}
+#endif
bool wxTextCtrl::Create( wxWindow *parent, wxWindowID id, const wxString &value,
const wxPoint &pos, const wxSize &size,
Clear();
- FILE *fp = NULL;
+ FILE *fp = (FILE*) NULL;
struct stat statb;
if ((stat ((char*) (const char*) file, &statb) == -1) || (statb.st_mode & S_IFMT) != S_IFREG ||
}
else
{
- char *text = NULL;
+ char *text = (char*) NULL;
gint len = 0;
if (m_windowStyle & wxTE_MULTILINE)
key_event.Skip();
}
+#ifndef NO_TEXT_WINDOW_STREAM
int wxTextCtrl::overflow( int WXUNUSED(c) )
{
int len = pptr() - pbase();
WriteText(buf);
return *this;
}
+#endif
GtkWidget* wxTextCtrl::GetConnectWidget()
{