Package: perl-tk
Version: 1:804.028-6
Severity: normal
man page: Tk::TixGrid
Name: formatCmf
type is listed as being one of "x_region", "y_region", "s_region", "main",
but in reality it should be "x_margin", "y_margin", "s_margin", "main".
Best
Norbert
PS maybe of interest: the -xon/-xoff and -yon/-yoff: The man page says
"these options are obsucre. If anyone can figure out how to do something
interesting given ... let Nick know!".
Well, it is simply a format specification:
-xon => n
-xoff => m
n,m being natural numbers, n >= 1, m >= 0
Assume the area (ul-x, ul-y, lr-x, lr-y) is to be formated. Then for each row
(for xon/xoff) first n rows are formatted, then m rows skipped, then again
n rows formatted, then again m rows skipped etc until we reach lr-x.
Example: We want to format the lines in different colors:
if ($area eq "main") {
# format *all* lines with the bg gray70
$w->formatGrid( @entbox, -bg => gray70',
-xon => 1, -xoff => 0, -yon => 1, -yoff => 0);
# format every other line with bg gray90
$w->formatGrid( @entbox, -bg => gray70',
-xon => 1, -xoff => 0, -yon => 1, -yoff => 1);
}
Mind the difference in -yoff in the second call. It makes sure that one
line is skipped. So in effect lines are alternatively with the two backgrounds.
Hope that helps, can you please forward that to "Nick" (whoever that may be).
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-rc7 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages perl-tk depends on:
ii libc6 2.10.1-7 GNU C Library: Shared libraries
ii libfontconfig1 2.6.0-4 generic font configuration library
ii libjpeg62 6b-15 The Independent JPEG Group's JPEG
ii libpng12-0 1.2.40-1 PNG library - runtime
ii libx11-6 2:1.2.2-1 X11 client-side library
ii libxft2 2.1.13-3 FreeType-based font drawing librar
ii perl 5.10.1-7 Larry Wall's Practical Extraction
ii perl-base [perlapi-5.1 5.10.1-7 minimal Perl system
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
perl-tk recommends no packages.
perl-tk suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]