#include "wx/textctrl.h"
#include "wx/utils.h"
+#include <wx/intl.h>
//-----------------------------------------------------------------------------
// wxTextCtrl
PreCreation( parent, id, pos, size, style, name );
bool bMultiLine = (style & wxTE_MULTILINE) != 0;
- if ( bMultiLine ) {
+ if ( bMultiLine )
+ {
// a multi-line edit control: create a vertical scrollbar by default and
// horizontal if requested
bool bHasHScrollbar = (style & wxHSCROLL) != 0;
gtk_editable_insert_text( GTK_EDITABLE(m_text), value, value.Length(), &tmp );
};
- if (style & wxREADONLY)
+ if (style & wxTE_READONLY)
{
}
else
bool wxTextCtrl::LoadFile( const wxString &WXUNUSED(file) )
{
- wxFAIL_MSG("wxTextCtrl::LoadFile not implemented");
+ wxFAIL_MSG(_("wxTextCtrl::LoadFile not implemented"));
return FALSE;
};
bool wxTextCtrl::SaveFile( const wxString &WXUNUSED(file) )
{
- wxFAIL_MSG("wxTextCtrl::SaveFile not implemented");
+ wxFAIL_MSG(_("wxTextCtrl::SaveFile not implemented"));
return FALSE;
};
void wxTextCtrl::ShowPosition( long WXUNUSED(pos) )
{
- wxFAIL_MSG("wxTextCtrl::ShowPosition not implemented");
+ wxFAIL_MSG(_("wxTextCtrl::ShowPosition not implemented"));
};
long wxTextCtrl::GetInsertionPoint(void) const
return *this;
}
+GtkWidget* wxTextCtrl::GetConnectWidget(void)
+{
+ return GTK_WIDGET(m_text);
+};
+
+
+
+