Esteemed Monks,

The description of Tk::JBrowseEntry - so despite it being a copy this here type of installation I went ahead and installed it sucessfully on my AS 5.8.0 (bld 806) system on WinXP. I use Eclipse IDE with the Perl add-in.

In this code snippet:

my $dsquery = $cfr->JBrowseEntry( -label => 'Data Source', -width => '20', -height => '5', -variable => \$state->{dsSrcName}, -browsecmd => \&doGetDatasource, -state => 'normal' )->grid();
Which seems fine to me according to the docs I get the following error:
Use of uninitialized value in addition (+) at K:/Perl/site/lib/Tk/JBro +wseEntry.pm line 854.
OK, so what is that saying? Well, here is the relevant portion from the source code for the module.
if ($^O =~ /Win/i) { #$y1 -= 3; #print "-bw=$w->{-borderwidth}= y1 was=$y1=\n"; $y1 -= 3 - ($w->{-borderwidth} || 2); #print "-bw=$w->{-borderwidth}= y1 now=$y1=\n"; #$unitpixels = $e->height - ((2 * $bd) + 1) + 6; $unitpixels = $e->height + 1; #$ht = ($wheight * $unitpixels) + 10; $ht = ($wheight * $unitpixels) + (2 * $bd) + 4; #print "-???- eheight=$e->height= BD=$bd= up=$unitpixels= wh=$wheight= + HT=$ht=\n"; #$ee = $w->Subwidget("textpart"); $ee = $w->Subwidget("frame"); $x1 = $ee->rootx; $x2 = $a->rootx + $a->width; $width = $x2 - $x1 854: $rw = $width + $w->{-borderwidth}; $x1 += 1; #FUDGE MORE FOR WINDOWS (THINNER BORDER) TO MAK +E DROPDOWN LINE UP VERTICALLY W/ENTRY&BUTTON. }
The author seems to be doing some calculation and fudging to do with Windows, but I am not confident enough to go delving into the module.

Has anybody had any experience with this module? Apart from this annoying message it appears to be working okay. I can turn off the warnings once out of development, but I would really like to know why this is happening and fix it if possible.

As always your assistance is much appreciated.

jdtoronto


In reply to Tk::JBrowseEntry gives me this error I dont understand by jdtoronto

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.