Tags-window isn't updated upon game change

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

Tags-window isn't updated upon game change

Postby macx » 24 Apr 2010, 16:03

When browsing the games in the game-list window, the Tags-Window isn't updated anymore (since v4.4.0).
Would it be possible to fix that in a future version?

That leads me to another pebble bothering my toes ever since I'm using winboard: would be nice to have the comments window cleared upon changing to another game in the list. Can be very irritating to see the comments of the previous game.

Thx.
macx
 
Posts: 4
Joined: 06 Oct 2009, 00:49

Re: Tags-window isn't updated upon game change

Postby H.G.Muller » 24 Apr 2010, 20:02

OK, I see. It only updates the tags window on loading a PGN when /autoDisplaytags=true. When the tags window is opened from the Mode -> Edit Tags menu, there is no update. In 4.2.7 the /autoDisplayTags option does not exist (but the behavior is like it is always on), and the routine that pops it up is called always. If the window was already up, this just causes the contents to be replaced.

I guess I should check for the window already being open, and if it is, display new tags even when /autoDisplayTags=false. For now, the work-around is to set /autoDisplayTags=true.

Clearing the comments window on loading a new game also seems a good idea.

Thanks for reporting!
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Tags-window isn't updated upon game change

Postby H.G.Muller » 24 Apr 2010, 20:38

I also see an interesting difference between WinBoard and XBoard here: when clicking Machine White, Black or Two Machines, WinBoard refreshes the tags window if it is open, but in XBoard the old tags continue to be displayed (while the stored tags are in fact reset when you do this). I guess the latter behavior is undesirable, but in XBoard it was repaired in the front-end, not in the back-end (so the patch did not affect XBoard).

So I guess I should supply a routine TagsUp() in both XBoard and WinBoard front-end, that the back-end can use to inquire about the state of the window, and displace the code now in the WinBoard front-end to the back-end, using it. LoadGame can then also use it to decide on refreshing the tags.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Tags-window isn't updated upon game change

Postby macx » 26 Apr 2010, 22:55

The /autoDisplaytags is set true by default, it appears. However, the Tags window doesn't update when changing to another pgn-file. The only work around working for me is to close and reopen the Tags window itself.

Ok, thanks for your reply, and your work!
macx
 
Posts: 4
Joined: 06 Oct 2009, 00:49


Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 15 guests