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
This commit is contained in:
Charlie Fenton 2008-10-03 06:42:10 +00:00
parent 7019bb3192
commit b9bbd5fae7
3 changed files with 19 additions and 6 deletions

View File

@ -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

View File

@ -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<n; ++i) {
row = m_iRowsNeedingProgressBars[i];
if (row < topItem) continue;

View File

@ -645,13 +645,8 @@ void CViewProjects::UpdateSelection() {
enableNoNewTasks = true;
enableReset = true;
enableDetach = true;
} else {
UpdateWebsiteSelection(GRP_WEBSITES, NULL);
if(m_TaskGroups.size() > 1) {
m_pTaskPane->DisableTaskGroupTasks(m_TaskGroups[1]);
}
}
row = -1;
for (i=0; i<n; i++) {
// Step through all selected items