Jan, I was hoping we would hear an estimate from ActiveState as to when the PPM version of the Tk module will be updated. Nick Ing Simmons released the current version 800.023 to CPAN on 2001/05/15. The current version available via PPM is 800.022 . As the recent email from the ActivePerl mailing list indicates, there are some bugs in the 800.022 version that were likely corrected in the 800.023 version.
-- Mike Arms -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 8:39 AM To: ActivePerl Subject: RE: Radio Button Bug with Perl/TK under W2K Hugh S. Myers writes: > Widgets works just fine. However, the following doesn't: > > #!/usr/bin/perl > use strict; > use warnings; > use Tk; > > my $mw = MainWindow->new; > $mw->configure(-menu => my $menubar = $mw->Menu); > my $options = $menubar->cascade(-label => '~Options'); > my $format = 'png'; > foreach (qw/bmp ppm gif png jbg tif/) { > $options->radiobutton( > -label => $_, > -variable => \$format, > ); > } > > MainLoop(); > > When the Options menu drops down you see two things. > > 1. The first character of each entry is partially obscured. > 2. The checkmark bit map is incompletely drawn. > > And yes, radiobuttons in windows use checkmarks, don't ask me why. > If you add a single space prefix to each entry, the first problem goes away. > And the > bitmap does get redrawn as you pass the mouse over it--still this isn't the > way it was designed > as running under win-95 will demonstrate. I've seen references to the line > of code that > could be patched (in the 'C' source) in the newsgroup. I'm looking for the > fix to be applied to > the ActiveState distro. Right, I see what you mean (although it doesn't go wrong on my box in exactly the way you describe), its radio buttons in a menu not a dialog that have the problem, as I can now see in the widget menu demo. It looks like you are left with either waiting for Activestate, or some other friendly person, to build a later version with the problem fixed, or building it yourself. Alternatively you may be able to configure you radio & check buttons in menus to increase the space between the icon and label so they don't overlap, which seems to be the problem. If you can (and don't ask me how :-/ ) it may give you a work-around until a fix is available. HTH -- Brian Raven signal(i, SIG_DFL); /* crunch, crunch, crunch */ -- Larry Wall in doarg.c from the perl source code _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/listinfo/activeperl
