|
From: <pst...@us...> - 2013-04-09 02:42:33
|
Revision: 1025
http://sourceforge.net/p/jazzplusplus/code/1025
Author: pstieber
Date: 2013-04-09 02:42:30 +0000 (Tue, 09 Apr 2013)
Log Message:
-----------
Implemented an empty OnEraseBackground.
Modified Paths:
--------------
trunk/jazz/src/ArrayControl.cpp
trunk/jazz/src/ArrayControl.h
Modified: trunk/jazz/src/ArrayControl.cpp
===================================================================
--- trunk/jazz/src/ArrayControl.cpp 2013-04-09 02:41:12 UTC (rev 1024)
+++ trunk/jazz/src/ArrayControl.cpp 2013-04-09 02:42:30 UTC (rev 1025)
@@ -48,6 +48,7 @@
//-----------------------------------------------------------------------------
BEGIN_EVENT_TABLE(JZArrayControl, wxControl)
EVT_SIZE(JZArrayControl::OnSize)
+ EVT_ERASE_BACKGROUND(JZArrayControl::OnEraseBackground)
EVT_PAINT(JZArrayControl::OnPaint)
EVT_MOUSE_EVENTS(JZArrayControl::OnMouseEvent)
EVT_MOUSE_CAPTURE_LOST(JZArrayControl::OnMouseCaptureLost)
@@ -109,7 +110,16 @@
}
//-----------------------------------------------------------------------------
+// Description:
+// This code always erases when painting so we override this function to
+// avoid flicker.
//-----------------------------------------------------------------------------
+void JZArrayControl::OnEraseBackground(wxEraseEvent& Event)
+{
+}
+
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
void JZArrayControl::OnPaint(wxPaintEvent& Event)
{
wxSize Size = GetClientSize();
Modified: trunk/jazz/src/ArrayControl.h
===================================================================
--- trunk/jazz/src/ArrayControl.h 2013-04-09 02:41:12 UTC (rev 1024)
+++ trunk/jazz/src/ArrayControl.h 2013-04-09 02:42:30 UTC (rev 1025)
@@ -50,6 +50,8 @@
void OnSize(wxSizeEvent& Event);
+ void OnEraseBackground(wxEraseEvent& Event);
+
void OnPaint(wxPaintEvent& Event);
void OnMouseEvent(wxMouseEvent& MouseEvent);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|