From b9bbd5fae7a096ad3867d30e802a53d8321d08f2 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 3 Oct 2008 06:42:10 +0000 Subject: [PATCH] MGR: Fix position of progress bars when scrolled horizontally; eliminate unnecessary clearing of web site selection buttons in Projects tab svn path=/trunk/boinc/; revision=16119 --- checkin_notes | 11 +++++++++++ clientgui/BOINCListCtrl.cpp | 7 +++++++ clientgui/ViewProjects.cpp | 7 +------ 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/checkin_notes b/checkin_notes index 842cc5cbfc..6cd5b04d2e 100644 --- a/checkin_notes +++ b/checkin_notes @@ -7986,3 +7986,14 @@ David 2 Oct 2008 Makefile.am samples/wrapper/ wrapper.cpp + +Charlie 2 Oct 2008 + - MGR: Fix position of progress bars in Projects and Tasks tabs when + scrolled horizontally. + - MGR: Eliminate unnecessary clearing of web site selection buttons + in Projects tab, hoping to fix an occasional drawing problem. + + clientgui/ + BOINCListCtrl.cpp + ViewProjects.cpp + diff --git a/clientgui/BOINCListCtrl.cpp b/clientgui/BOINCListCtrl.cpp index df72ded5c7..991cb400bf 100644 --- a/clientgui/BOINCListCtrl.cpp +++ b/clientgui/BOINCListCtrl.cpp @@ -298,6 +298,13 @@ void CBOINCListCtrl::DrawBarGraphs() } w = GetColumnWidth(progressColumn); +#if USE_NATIVE_LISTCONTROL + x -= GetScrollPos(wxHORIZONTAL); +#else + int yy; + GetMainWin()->CalcScrolledPosition(x, 0, &x, &yy); +#endif + for (int i=0; i 1) { - m_pTaskPane->DisableTaskGroupTasks(m_TaskGroups[1]); - } } - + row = -1; for (i=0; i