Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#837 closed Defect (fixed)

Suspend/Resume buttons not updating

Reported by: MarkJ Owned by: charlief
Priority: Minor Milestone: Undetermined
Component: Manager Version:
Keywords: suspend, resume Cc: Pepo

Description

BOINC 6.6.3, installed as single-user under WinXP.

Select a running task from the tasks tab. Press suspend. Button should change to resume but does not. Similarly select a suspended task and select resume. Once started button does not change to suspend.

In both cases selecting another task and then re-selecting the original task does show the correct buttons. See attached screen shots.

Also the text under the projects column is pushed to the right as it makes room for a scroll bar for the buttons until the window is resized. The scroll bar goes away when the window is large enough, however the text under the project column does not move back to the left. It does this under 6.5.0 and 6.6.2 as well. BOINC 6.2.19 works correctly.

Attachments (2)

Suspend_Resume1.JPG (187.7 KB) - added by MarkJ 15 years ago.
Suspend/resume buttons1
Suspend_Resume2.JPG (189.9 KB) - added by MarkJ 15 years ago.
Suspend/resume buttons2

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by MarkJ

Attachment: Suspend_Resume1.JPG added

Suspend/resume buttons1

Changed 15 years ago by MarkJ

Attachment: Suspend_Resume2.JPG added

Suspend/resume buttons2

comment:1 Changed 15 years ago by charlief

Owner: changed from romw to charlief

This bug has 2 parts. The Suspend button not changing to Resume is valid, and I will examine that. The second part is that the left hand column of the list is shifted right.

As far as I can see, the shift to the right has nothing to do with making room for a scroll bar; it is always present, but only on Windows. I spent quite a bit of time trying to fix that some time ago, but it is not even under the control of wxWidgets. The drawing is being done by Microsoft's native List-View control, which shifts the text to the right as soon as we associate an image list with the list. The image list has the up and down arrows we use to indicate the sort column; even though we add the icons only to the labels, the native list control shifts the first column of each row to the right. Among many other things, I spent quite a bit of time triying to find a way to draw the up or down sort arrow without using an image list, but could not fnd any way to do so reliably.

This does not happen with the non-native list control used on the Mac and Linux. As far as I can tell, there is no way to fix it for Windows, but it is only a minor cosmetic issue. The whole point of merging the old Grid View features into the old Accessible View was to enable Windows' accessibility features for users with disabilities, such as those using screen readers. This requires the use of the native list control.

comment:2 Changed 15 years ago by charlief

Resolution: fixed
Status: newclosed

(In [17078]) MGR: call UpdateSelection?() from OnListRender?() instead of from RestoreSelections?(). Fixes #837.

comment:3 Changed 15 years ago by charlief

(In [17079]) MGR: call UpdateSelection?() from OnListRender?() instead of from RestoreSelections?(). Fixes #837.

comment:4 Changed 15 years ago by charlief

Fixed Suspend / Resume button bug for 6.6.4. Will not fix the shift to the right.

comment:5 in reply to:  description Changed 15 years ago by Pepo

Cc: Pepo added

Replying to MarkJ:

Select a running task from the tasks tab. Press suspend. Button should change to resume but does not. Similarly select a suspended task and select resume. Once started button does not change to suspend.

Not exactly. The subsequent button presses do change their state, but are out of sync (one state late). When the button should display "suspen", it displays "resume" and vice versa.

Note: See TracTickets for help on using tickets.