projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
define arrays of chartoo as the existing ones can't be used to store char values...
[wxWidgets.git]
/
src
/
gtk1
/
textctrl.cpp
diff --git
a/src/gtk1/textctrl.cpp
b/src/gtk1/textctrl.cpp
index d09ad26829e522efb6f9d53c402c22c500daea69..147486f8647ba9642c30e14c98bc998c1b107307 100644
(file)
--- a/
src/gtk1/textctrl.cpp
+++ b/
src/gtk1/textctrl.cpp
@@
-187,9
+187,9
@@
static void wxgtk_text_draw( GtkWidget *widget, GdkRectangle *rect)
// wxTextCtrl
//-----------------------------------------------------------------------------
// wxTextCtrl
//-----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxTextCtrl,
wxControl
)
+IMPLEMENT_DYNAMIC_CLASS(wxTextCtrl,
wxTextCtrlBase
)
-BEGIN_EVENT_TABLE(wxTextCtrl, wx
Control
)
+BEGIN_EVENT_TABLE(wxTextCtrl, wx
TextCtrlBase
)
EVT_CHAR(wxTextCtrl::OnChar)
EVT_MENU(wxID_CUT, wxTextCtrl::OnCut)
EVT_CHAR(wxTextCtrl::OnChar)
EVT_MENU(wxID_CUT, wxTextCtrl::OnCut)
@@
-412,10
+412,16
@@
wxString wxTextCtrl::GetValue() const
return tmp;
}
return tmp;
}
-void wxTextCtrl::
SetValue( const wxString &value
)
+void wxTextCtrl::
DoSetValue( const wxString &value, int flags
)
{
wxCHECK_RET( m_text != NULL, wxT("invalid text ctrl") );
{
wxCHECK_RET( m_text != NULL, wxT("invalid text ctrl") );
+ if ( !(flags & SetValue_SendEvent) )
+ {
+ // do not generate events
+ IgnoreNextTextUpdate();
+ }
+
if (m_windowStyle & wxTE_MULTILINE)
{
gint len = gtk_text_get_length( GTK_TEXT(m_text) );
if (m_windowStyle & wxTE_MULTILINE)
{
gint len = gtk_text_get_length( GTK_TEXT(m_text) );