Lines 81-89
EVT_MIDDLE_DCLICK ( PatternView::OnMouseDown)
Link Here
|
81 |
EVT_LEFT_UP ( PatternView::OnMouseUp) |
81 |
EVT_LEFT_UP ( PatternView::OnMouseUp) |
82 |
EVT_RIGHT_UP ( PatternView::OnMouseUp) |
82 |
EVT_RIGHT_UP ( PatternView::OnMouseUp) |
83 |
EVT_MIDDLE_UP ( PatternView::OnMouseUp) |
83 |
EVT_MIDDLE_UP ( PatternView::OnMouseUp) |
84 |
#if wxCHECK_VERSION(2, 8, 0) |
|
|
85 |
EVT_MOUSE_CAPTURE_LOST ( PatternView::OnMouseCaptureLost) |
84 |
EVT_MOUSE_CAPTURE_LOST ( PatternView::OnMouseCaptureLost) |
86 |
#endif |
|
|
87 |
EVT_MOTION ( PatternView::OnMouseMotion) |
85 |
EVT_MOTION ( PatternView::OnMouseMotion) |
88 |
EVT_ENTER_WINDOW ( PatternView::OnMouseEnter) |
86 |
EVT_ENTER_WINDOW ( PatternView::OnMouseEnter) |
89 |
EVT_LEAVE_WINDOW ( PatternView::OnMouseExit) |
87 |
EVT_LEAVE_WINDOW ( PatternView::OnMouseExit) |
Lines 2901-2918
void PatternView::OnMouseUp(wxMouseEvent& event)
Link Here
|
2901 |
|
2899 |
|
2902 |
// ----------------------------------------------------------------------------- |
2900 |
// ----------------------------------------------------------------------------- |
2903 |
|
2901 |
|
2904 |
#if wxCHECK_VERSION(2, 8, 0) |
|
|
2905 |
|
2906 |
// mouse capture can be lost on Windows before mouse-up event |
2902 |
// mouse capture can be lost on Windows before mouse-up event |
2907 |
void PatternView::OnMouseCaptureLost(wxMouseCaptureLostEvent& WXUNUSED(event)) |
2903 |
void PatternView::OnMouseCaptureLost(wxMouseCaptureLostEvent& WXUNUSED(event)) |
2908 |
{ |
2904 |
{ |
|
|
2905 |
mouseisdown = false; |
2909 |
if (drawingcells || selectingcells || movingview || clickedcontrol > NO_CONTROL) { |
2906 |
if (drawingcells || selectingcells || movingview || clickedcontrol > NO_CONTROL) { |
2910 |
StopDraggingMouse(); |
2907 |
StopDraggingMouse(); |
2911 |
} |
2908 |
} |
2912 |
} |
2909 |
} |
2913 |
|
2910 |
|
2914 |
#endif |
|
|
2915 |
|
2916 |
// ----------------------------------------------------------------------------- |
2911 |
// ----------------------------------------------------------------------------- |
2917 |
|
2912 |
|
2918 |
void PatternView::OnMouseMotion(wxMouseEvent& event) |
2913 |
void PatternView::OnMouseMotion(wxMouseEvent& event) |