Update of /cvsroot/audacity/audacity-src/src/widgets
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv27855/src/widgets
Modified Files:
TimeTextCtrl.cpp TimeTextCtrl.h
Log Message:
Prevent flashing when redrawing
Index: TimeTextCtrl.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/TimeTextCtrl.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- TimeTextCtrl.h 20 Aug 2006 08:43:46 -0000 1.12
+++ TimeTextCtrl.h 17 Sep 2006 17:46:27 -0000 1.13
@@ -77,6 +77,7 @@
void OnCaptureKey(wxCommandEvent &event);
void OnKeyDown(wxKeyEvent &event);
void OnMouse(wxMouseEvent &event);
+ void OnErase(wxEraseEvent &event);
void OnPaint(wxPaintEvent &event);
void OnFocus(wxFocusEvent &event);
void OnContext(wxContextMenuEvent &event);
Index: TimeTextCtrl.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/TimeTextCtrl.cpp,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- TimeTextCtrl.cpp 11 Sep 2006 00:00:40 -0000 1.44
+++ TimeTextCtrl.cpp 17 Sep 2006 17:46:27 -0000 1.45
@@ -174,6 +174,7 @@
DEFINE_EVENT_TYPE(EVT_TIMETEXTCTRL_UPDATED)
BEGIN_EVENT_TABLE(TimeTextCtrl, wxControl)
+ EVT_ERASE_BACKGROUND(TimeTextCtrl::OnErase)
EVT_PAINT(TimeTextCtrl::OnPaint)
EVT_CONTEXT_MENU(TimeTextCtrl::OnContext)
EVT_MENU_RANGE(ID_MENU, ID_MENU+100, TimeTextCtrl::OnMenu)
@@ -725,6 +726,11 @@
SetBestFittingSize(sz);
}
+void TimeTextCtrl::OnErase(wxEraseEvent & event)
+{
+ // Ignore it to prevent flashing
+}
+
void TimeTextCtrl::OnPaint(wxPaintEvent &event)
{
wxPaintDC dc(this);
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs