added wxScrollWinEvent
use timestamp in various events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -94,7 +94,7 @@ const wxEventType wxEVT_KEY_DOWN = wxEVT_FIRST + 215;
|
|||||||
const wxEventType wxEVT_KEY_UP = wxEVT_FIRST + 216;
|
const wxEventType wxEVT_KEY_UP = wxEVT_FIRST + 216;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Scrollbar event identifiers
|
* wxScrollbar and wxSlider event identifiers
|
||||||
*/
|
*/
|
||||||
const wxEventType wxEVT_SCROLL_TOP = wxEVT_FIRST + 300;
|
const wxEventType wxEVT_SCROLL_TOP = wxEVT_FIRST + 300;
|
||||||
const wxEventType wxEVT_SCROLL_BOTTOM = wxEVT_FIRST + 301;
|
const wxEventType wxEVT_SCROLL_BOTTOM = wxEVT_FIRST + 301;
|
||||||
@@ -104,6 +104,20 @@ const wxEventType wxEVT_SCROLL_PAGEUP = wxEVT_FIRST + 304;
|
|||||||
const wxEventType wxEVT_SCROLL_PAGEDOWN = wxEVT_FIRST + 305;
|
const wxEventType wxEVT_SCROLL_PAGEDOWN = wxEVT_FIRST + 305;
|
||||||
const wxEventType wxEVT_SCROLL_THUMBTRACK = wxEVT_FIRST + 306;
|
const wxEventType wxEVT_SCROLL_THUMBTRACK = wxEVT_FIRST + 306;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Scroll events from wxWindow
|
||||||
|
*/
|
||||||
|
const wxEventType wxEVT_SCROLLWIN_TOP = wxEVT_FIRST + 320;
|
||||||
|
const wxEventType wxEVT_SCROLLWIN_BOTTOM = wxEVT_FIRST + 321;
|
||||||
|
const wxEventType wxEVT_SCROLLWIN_LINEUP = wxEVT_FIRST + 322;
|
||||||
|
const wxEventType wxEVT_SCROLLWIN_LINEDOWN = wxEVT_FIRST + 323;
|
||||||
|
const wxEventType wxEVT_SCROLLWIN_PAGEUP = wxEVT_FIRST + 324;
|
||||||
|
const wxEventType wxEVT_SCROLLWIN_PAGEDOWN = wxEVT_FIRST + 325;
|
||||||
|
const wxEventType wxEVT_SCROLLWIN_THUMBTRACK = wxEVT_FIRST + 326;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* System events
|
||||||
|
*/
|
||||||
const wxEventType wxEVT_SIZE = wxEVT_FIRST + 400;
|
const wxEventType wxEVT_SIZE = wxEVT_FIRST + 400;
|
||||||
const wxEventType wxEVT_MOVE = wxEVT_FIRST + 401;
|
const wxEventType wxEVT_MOVE = wxEVT_FIRST + 401;
|
||||||
const wxEventType wxEVT_CLOSE_WINDOW = wxEVT_FIRST + 402;
|
const wxEventType wxEVT_CLOSE_WINDOW = wxEVT_FIRST + 402;
|
||||||
@@ -396,7 +410,8 @@ private:
|
|||||||
DECLARE_DYNAMIC_CLASS(wxNotifyEvent)
|
DECLARE_DYNAMIC_CLASS(wxNotifyEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Scroll event class
|
// Scroll event class, derived form wxCommandEvent. wxScrollEvents are
|
||||||
|
// sent by wxSlider and wxScrollbar.
|
||||||
/*
|
/*
|
||||||
wxEVT_SCROLL_TOP
|
wxEVT_SCROLL_TOP
|
||||||
wxEVT_SCROLL_BOTTOM
|
wxEVT_SCROLL_BOTTOM
|
||||||
@@ -427,6 +442,41 @@ public:
|
|||||||
void SetPosition(int pos) { m_commandInt = pos; }
|
void SetPosition(int pos) { m_commandInt = pos; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// ScrollWin event class, derived fom wxEvent. wxScrollWinEvents
|
||||||
|
// are sent by wxWindow.
|
||||||
|
/*
|
||||||
|
wxEVT_SCROLLWIN_TOP
|
||||||
|
wxEVT_SCROLLWIN_BOTTOM
|
||||||
|
wxEVT_SCROLLWIN_LINEUP
|
||||||
|
wxEVT_SCROLLWIN_LINEDOWN
|
||||||
|
wxEVT_SCROLLWIN_PAGEUP
|
||||||
|
wxEVT_SCROLLWIN_PAGEDOWN
|
||||||
|
wxEVT_SCROLLWIN_THUMBTRACK
|
||||||
|
*/
|
||||||
|
|
||||||
|
class WXDLLEXPORT wxScrollWinEvent : public wxEvent
|
||||||
|
{
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxScrollWinEvent)
|
||||||
|
|
||||||
|
public:
|
||||||
|
wxScrollWinEvent(wxEventType commandType = wxEVT_NULL,
|
||||||
|
int pos = 0, int orient = 0);
|
||||||
|
~wxScrollWinEvent() {}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Accessors
|
||||||
|
*/
|
||||||
|
|
||||||
|
int GetOrientation() const { return (int) m_extraLong ; }
|
||||||
|
int GetPosition() const { return m_commandInt ; }
|
||||||
|
void SetOrientation(int orient) { m_extraLong = (long) orient; }
|
||||||
|
void SetPosition(int pos) { m_commandInt = pos; }
|
||||||
|
|
||||||
|
public:
|
||||||
|
int m_commandInt; // Additional information
|
||||||
|
long m_extraLong;
|
||||||
|
};
|
||||||
|
|
||||||
// Mouse event class
|
// Mouse event class
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -37,6 +37,7 @@
|
|||||||
IMPLEMENT_DYNAMIC_CLASS(wxCommandEvent, wxEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxCommandEvent, wxEvent)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxNotifyEvent, wxCommandEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxNotifyEvent, wxCommandEvent)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxScrollEvent, wxCommandEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxScrollEvent, wxCommandEvent)
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS(wxScrollWinEvent, wxEvent)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxMouseEvent, wxEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxMouseEvent, wxEvent)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxKeyEvent, wxEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxKeyEvent, wxEvent)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxSizeEvent, wxEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxSizeEvent, wxEvent)
|
||||||
@@ -156,6 +157,19 @@ wxScrollEvent::wxScrollEvent(wxEventType commandType,
|
|||||||
m_commandInt = pos;
|
m_commandInt = pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ScrollWin events
|
||||||
|
*/
|
||||||
|
|
||||||
|
wxScrollWinEvent::wxScrollWinEvent(wxEventType commandType,
|
||||||
|
int pos,
|
||||||
|
int orient)
|
||||||
|
: wxEvent(commandType)
|
||||||
|
{
|
||||||
|
m_extraLong = orient;
|
||||||
|
m_commandInt = pos;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mouse events
|
* Mouse events
|
||||||
*
|
*
|
||||||
|
@@ -339,10 +339,16 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, GdkEventKey *gdk_e
|
|||||||
if (g_blockEventsOnDrag) return FALSE;
|
if (g_blockEventsOnDrag) return FALSE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
printf( "OnKeyPress from " );
|
printf( "KeyDown-ScanCode is: %d.\n", gdk_event->keyval );
|
||||||
if (win->GetClassInfo() && win->GetClassInfo()->GetClassName())
|
if (gdk_event->state & GDK_SHIFT_MASK)
|
||||||
printf( win->GetClassInfo()->GetClassName() );
|
printf( "ShiftDown.\n" );
|
||||||
printf( ".\n" );
|
else
|
||||||
|
printf( "ShiftUp.\n" );
|
||||||
|
if (gdk_event->state & GDK_CONTROL_MASK)
|
||||||
|
printf( "ControlDown.\n" );
|
||||||
|
else
|
||||||
|
printf( "ControlUp.\n" );
|
||||||
|
printf( "\n" );
|
||||||
*/
|
*/
|
||||||
|
|
||||||
long key_code = 0;
|
long key_code = 0;
|
||||||
@@ -427,6 +433,7 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, GdkEventKey *gdk_e
|
|||||||
if (!key_code) return FALSE;
|
if (!key_code) return FALSE;
|
||||||
|
|
||||||
wxKeyEvent event( wxEVT_KEY_DOWN );
|
wxKeyEvent event( wxEVT_KEY_DOWN );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
||||||
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
||||||
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
||||||
@@ -521,10 +528,16 @@ static gint gtk_window_key_release_callback( GtkWidget *widget, GdkEventKey *gdk
|
|||||||
if (g_blockEventsOnDrag) return FALSE;
|
if (g_blockEventsOnDrag) return FALSE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
printf( "OnKeyRelease from " );
|
printf( "KeyUp-ScanCode is: %d.\n", gdk_event->keyval );
|
||||||
if (win->GetClassInfo() && win->GetClassInfo()->GetClassName())
|
if (gdk_event->state & GDK_SHIFT_MASK)
|
||||||
printf( win->GetClassInfo()->GetClassName() );
|
printf( "ShiftDown.\n" );
|
||||||
printf( ".\n" );
|
else
|
||||||
|
printf( "ShiftUp.\n" );
|
||||||
|
if (gdk_event->state & GDK_CONTROL_MASK)
|
||||||
|
printf( "ControlDown.\n" );
|
||||||
|
else
|
||||||
|
printf( "ControlUp.\n" );
|
||||||
|
printf( "\n" );
|
||||||
*/
|
*/
|
||||||
|
|
||||||
long key_code = 0;
|
long key_code = 0;
|
||||||
@@ -609,6 +622,7 @@ static gint gtk_window_key_release_callback( GtkWidget *widget, GdkEventKey *gdk
|
|||||||
if (!key_code) return FALSE;
|
if (!key_code) return FALSE;
|
||||||
|
|
||||||
wxKeyEvent event( wxEVT_KEY_UP );
|
wxKeyEvent event( wxEVT_KEY_UP );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
||||||
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
||||||
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
||||||
@@ -703,6 +717,7 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, GdkEventButton
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxMouseEvent event( event_type );
|
wxMouseEvent event( event_type );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
||||||
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
||||||
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
||||||
@@ -813,6 +828,7 @@ static gint gtk_window_button_release_callback( GtkWidget *widget, GdkEventButto
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxMouseEvent event( event_type );
|
wxMouseEvent event( event_type );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
||||||
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
||||||
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
||||||
@@ -922,6 +938,7 @@ static gint gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
wxMouseEvent event( wxEVT_MOTION );
|
wxMouseEvent event( wxEVT_MOTION );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
||||||
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
||||||
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
||||||
@@ -1103,6 +1120,7 @@ static gint gtk_window_enter_callback( GtkWidget *widget, GdkEventCrossing *gdk_
|
|||||||
gdk_window_set_cursor( widget->window, win->GetCursor().GetCursor() );
|
gdk_window_set_cursor( widget->window, win->GetCursor().GetCursor() );
|
||||||
|
|
||||||
wxMouseEvent event( wxEVT_ENTER_WINDOW );
|
wxMouseEvent event( wxEVT_ENTER_WINDOW );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.SetEventObject( win );
|
event.SetEventObject( win );
|
||||||
|
|
||||||
int x = 0;
|
int x = 0;
|
||||||
@@ -1149,6 +1167,7 @@ static gint gtk_window_leave_callback( GtkWidget *widget, GdkEventCrossing *gdk_
|
|||||||
gdk_window_set_cursor( widget->window, wxSTANDARD_CURSOR->GetCursor() );
|
gdk_window_set_cursor( widget->window, wxSTANDARD_CURSOR->GetCursor() );
|
||||||
|
|
||||||
wxMouseEvent event( wxEVT_LEAVE_WINDOW );
|
wxMouseEvent event( wxEVT_LEAVE_WINDOW );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.SetEventObject( win );
|
event.SetEventObject( win );
|
||||||
|
|
||||||
int x = 0;
|
int x = 0;
|
||||||
|
@@ -339,10 +339,16 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, GdkEventKey *gdk_e
|
|||||||
if (g_blockEventsOnDrag) return FALSE;
|
if (g_blockEventsOnDrag) return FALSE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
printf( "OnKeyPress from " );
|
printf( "KeyDown-ScanCode is: %d.\n", gdk_event->keyval );
|
||||||
if (win->GetClassInfo() && win->GetClassInfo()->GetClassName())
|
if (gdk_event->state & GDK_SHIFT_MASK)
|
||||||
printf( win->GetClassInfo()->GetClassName() );
|
printf( "ShiftDown.\n" );
|
||||||
printf( ".\n" );
|
else
|
||||||
|
printf( "ShiftUp.\n" );
|
||||||
|
if (gdk_event->state & GDK_CONTROL_MASK)
|
||||||
|
printf( "ControlDown.\n" );
|
||||||
|
else
|
||||||
|
printf( "ControlUp.\n" );
|
||||||
|
printf( "\n" );
|
||||||
*/
|
*/
|
||||||
|
|
||||||
long key_code = 0;
|
long key_code = 0;
|
||||||
@@ -427,6 +433,7 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, GdkEventKey *gdk_e
|
|||||||
if (!key_code) return FALSE;
|
if (!key_code) return FALSE;
|
||||||
|
|
||||||
wxKeyEvent event( wxEVT_KEY_DOWN );
|
wxKeyEvent event( wxEVT_KEY_DOWN );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
||||||
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
||||||
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
||||||
@@ -521,10 +528,16 @@ static gint gtk_window_key_release_callback( GtkWidget *widget, GdkEventKey *gdk
|
|||||||
if (g_blockEventsOnDrag) return FALSE;
|
if (g_blockEventsOnDrag) return FALSE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
printf( "OnKeyRelease from " );
|
printf( "KeyUp-ScanCode is: %d.\n", gdk_event->keyval );
|
||||||
if (win->GetClassInfo() && win->GetClassInfo()->GetClassName())
|
if (gdk_event->state & GDK_SHIFT_MASK)
|
||||||
printf( win->GetClassInfo()->GetClassName() );
|
printf( "ShiftDown.\n" );
|
||||||
printf( ".\n" );
|
else
|
||||||
|
printf( "ShiftUp.\n" );
|
||||||
|
if (gdk_event->state & GDK_CONTROL_MASK)
|
||||||
|
printf( "ControlDown.\n" );
|
||||||
|
else
|
||||||
|
printf( "ControlUp.\n" );
|
||||||
|
printf( "\n" );
|
||||||
*/
|
*/
|
||||||
|
|
||||||
long key_code = 0;
|
long key_code = 0;
|
||||||
@@ -609,6 +622,7 @@ static gint gtk_window_key_release_callback( GtkWidget *widget, GdkEventKey *gdk
|
|||||||
if (!key_code) return FALSE;
|
if (!key_code) return FALSE;
|
||||||
|
|
||||||
wxKeyEvent event( wxEVT_KEY_UP );
|
wxKeyEvent event( wxEVT_KEY_UP );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
||||||
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
||||||
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
||||||
@@ -703,6 +717,7 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, GdkEventButton
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxMouseEvent event( event_type );
|
wxMouseEvent event( event_type );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
||||||
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
||||||
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
||||||
@@ -813,6 +828,7 @@ static gint gtk_window_button_release_callback( GtkWidget *widget, GdkEventButto
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxMouseEvent event( event_type );
|
wxMouseEvent event( event_type );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
||||||
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
||||||
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
||||||
@@ -922,6 +938,7 @@ static gint gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
wxMouseEvent event( wxEVT_MOTION );
|
wxMouseEvent event( wxEVT_MOTION );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK);
|
||||||
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK);
|
||||||
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
event.m_altDown = (gdk_event->state & GDK_MOD1_MASK);
|
||||||
@@ -1103,6 +1120,7 @@ static gint gtk_window_enter_callback( GtkWidget *widget, GdkEventCrossing *gdk_
|
|||||||
gdk_window_set_cursor( widget->window, win->GetCursor().GetCursor() );
|
gdk_window_set_cursor( widget->window, win->GetCursor().GetCursor() );
|
||||||
|
|
||||||
wxMouseEvent event( wxEVT_ENTER_WINDOW );
|
wxMouseEvent event( wxEVT_ENTER_WINDOW );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.SetEventObject( win );
|
event.SetEventObject( win );
|
||||||
|
|
||||||
int x = 0;
|
int x = 0;
|
||||||
@@ -1149,6 +1167,7 @@ static gint gtk_window_leave_callback( GtkWidget *widget, GdkEventCrossing *gdk_
|
|||||||
gdk_window_set_cursor( widget->window, wxSTANDARD_CURSOR->GetCursor() );
|
gdk_window_set_cursor( widget->window, wxSTANDARD_CURSOR->GetCursor() );
|
||||||
|
|
||||||
wxMouseEvent event( wxEVT_LEAVE_WINDOW );
|
wxMouseEvent event( wxEVT_LEAVE_WINDOW );
|
||||||
|
event.SetTimestamp( gdk_event->time );
|
||||||
event.SetEventObject( win );
|
event.SetEventObject( win );
|
||||||
|
|
||||||
int x = 0;
|
int x = 0;
|
||||||
|
Reference in New Issue
Block a user