Use wxUniv textctrl implementation in wxX11
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22708
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#ifndef __X11TEXTCTRLH__
#define __X11TEXTCTRLH__
+// Set to 1 to use wxUniv's implementation, 0
+// to use wxX11's.
+#define wxUSE_UNIV_TEXTCTRL 1
+
+#if wxUSE_UNIV_TEXTCTRL
+#include "wx/univ/textctrl.h"
+#else
+
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "textctrl.h"
#endif
wxTextCtrl *m_winCapture;
};
-#endif // __GTKTEXTCTRLH__
+#endif
+// wxUSE_UNIV_TEXTCTRL
+
+#endif // __X11TEXTCTRLH__
SData().m_colLastVisible += SData().m_colStart;
wxLogTrace(_T("text"), _T("Last visible column/position is %d/%ld"),
- SData().m_colLastVisible, SData().m_posLastVisible);
+ (int) SData().m_colLastVisible, (long) SData().m_posLastVisible);
}
void wxTextCtrl::OnSize(wxSizeEvent& event)
{
UpdateScrollbars();
}
+ wxControl::OnInternalIdle();
}
bool wxTextCtrl::SendAutoScrollEvents(wxScrollWinEvent& event) const
#endif
#include "wx/textctrl.h"
+
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/log.h"
void wxTextCtrl::OnInternalIdle()
{
+ wxControl::OnInternalIdle();
+
m_ignoreInput = FALSE;
if (m_lang != wxSOURCE_LANG_NONE)