]> git.saurik.com Git - wxWidgets.git/commitdiff
ENTER and LEAVE mouse events for multi-line text controls on GTK2, from Mart R. ...
authorKevin Hock <hockkn@yahoo.com>
Sat, 19 Feb 2005 06:10:55 +0000 (06:10 +0000)
committerKevin Hock <hockkn@yahoo.com>
Sat, 19 Feb 2005 06:10:55 +0000 (06:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textctrl.cpp
src/gtk1/textctrl.cpp

index 680d3872438ac61dd997107471b8ba93604aa5fb..3cd7d06b2ce8773f1b909b3276d45e753161e2d8 100644 (file)
@@ -579,6 +579,8 @@ bool wxTextCtrl::Create( wxWindow *parent,
         if (!HasFlag(wxNO_BORDER))
             gtk_scrolled_window_set_shadow_type( GTK_SCROLLED_WINDOW(m_widget), GTK_SHADOW_IN );
 
+        gtk_widget_add_events( GTK_WIDGET(m_text), GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK );
+
         GTK_WIDGET_UNSET_FLAGS( m_widget, GTK_CAN_FOCUS );
 #else
         // create our control ...
index 680d3872438ac61dd997107471b8ba93604aa5fb..3cd7d06b2ce8773f1b909b3276d45e753161e2d8 100644 (file)
@@ -579,6 +579,8 @@ bool wxTextCtrl::Create( wxWindow *parent,
         if (!HasFlag(wxNO_BORDER))
             gtk_scrolled_window_set_shadow_type( GTK_SCROLLED_WINDOW(m_widget), GTK_SHADOW_IN );
 
+        gtk_widget_add_events( GTK_WIDGET(m_text), GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK );
+
         GTK_WIDGET_UNSET_FLAGS( m_widget, GTK_CAN_FOCUS );
 #else
         // create our control ...