Changeset 164
- Timestamp:
- 10/06/10 11:58:53 (20 months ago)
- Location:
- cafu/trunk/CaWE
- Files:
-
- 3 modified
-
ChildFrameViewWin2D.cpp (modified) (3 diffs)
-
ChildFrameViewWin2D.hpp (modified) (1 diff)
-
ChildFrameViewWin3D.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cafu/trunk/CaWE/ChildFrameViewWin2D.cpp
r163 r164 88 88 EVT_SCROLLWIN (ViewWindow2DT::OnScroll ) // Scroll event. 89 89 EVT_PAINT (ViewWindow2DT::OnPaint ) // Paint event. 90 EVT_ERASE_BACKGROUND (ViewWindow2DT::OnEraseBackground ) // Erase background event.91 90 EVT_SIZE (ViewWindow2DT::OnSize ) // Size event. 92 91 EVT_MOUSE_CAPTURE_LOST(ViewWindow2DT::OnMouseCaptureLost) … … 109 108 { 110 109 SetMinSize(wxSize(120, 90)); 110 SetBackgroundStyle(wxBG_STYLE_PAINT); // Our paint event handler handles erasing the background. 111 111 112 112 SetZoom(0.25); // Calls UpdateScrollbars(), which calls SetScrollbar(hor/ver) and Refresh(), then calls SetScrollPos(hor/ver). … … 1313 1313 1314 1314 1315 void ViewWindow2DT::OnEraseBackground(wxEraseEvent& EE)1316 {1317 // Do nothing (i.e. do *not* erase the background).1318 }1319 1320 1321 1315 void ViewWindow2DT::OnSize(wxSizeEvent& SE) 1322 1316 { -
cafu/trunk/CaWE/ChildFrameViewWin2D.hpp
r163 r164 146 146 void OnContextMenu (wxContextMenuEvent& CE); 147 147 void OnPaint (wxPaintEvent& PE); 148 void OnEraseBackground (wxEraseEvent& EE);149 148 void OnSize (wxSizeEvent& SE); 150 149 void OnMouseCaptureLost(wxMouseCaptureLostEvent& ME); -
cafu/trunk/CaWE/ChildFrameViewWin3D.cpp
r163 r164 479 479 break; 480 480 481 case WXK_UP: 482 case WXK_DOWN: 483 case WXK_LEFT: 484 case WXK_RIGHT: 485 // Handle the arrow keys here (so that KE.Skip() is not called for them), in order to 486 // prevent (under wxGTK) that the default processing moves the focus to another window. 487 break; 488 481 489 default: 482 490 KE.Skip();
