Re: Corrections to CD-ROM code

David S. Cargo (escargo@anubis.network.com)
Mon, 9 Feb 1998 13:08:50 -0600

Date: Mon, 9 Feb 1998 13:08:50 -0600
From: escargo@anubis.network.com (David S. Cargo)
Message-Id: <199802091908.NAA18894@brutus.network.com>
To: erc@newton.pconline.com
Subject: Re: Corrections to CD-ROM code

I put your original files in RCS archives, so I could make comparisons,
but I don't have them where I am at the moment.

As I recall, the first problem I had was running menu1.tcl on a Linux
system using 4.2. If I recall correctly, there was a value that was
something.$menu_count when it should have been something.menu$menu_count.

This was only hit for versions earlier than 8.0.

The second thing was that the menubar produced for 4.2 had expand true
instead of false, so if you radically resized the box, the menubar started
floating in the middle of the expanded space. I stuck an -expand 0
in the pack of the menubar so it wouldn't do that.

I think I also changes a line something like
"set menu_count [expr $menu_count + 1]" to "incr menu_count" because it
seemed more natural.

I think I also got an error message from somewhere when the sequence
set menu_count 0
global menu_count

was encountered. The complaint had to do with the lines being in the
wrong order, and when I changed them to global followed by set it
worked just fine.

dsc