If all started up, you will see that first column is very small!

First, when you distribute custom modules for testing, you should keep them in the working directory for easy cleanup and prevention of garbage collecting in PERL5LIB. So you could have just created a directory in your script directory, called Tk, put your custom module in it, and put " use lib '.' " in your test script.

Having done that, when I run your test script, I get

"$full_path" requires explicit package name......
When I set an inital value to $full_path, like "my $full_path=0", it starts up and the first column, is very small.

Now that brings us to what is probably causing it. I'm just guessing here, but you are probably getting the default width for MListbox, not what you are passing in as the population hash. Why? Read "perldoc Tk::Derived" and pay close attention to the Populate sub

sub Populate { my( $self, $args ) = @_; my $flag = delete $args->{-flag}; if( defined $flag ) { # handle -flag => xxx which can only be done at create # time the delete above ensures that new() does not try # and do $self->configure( -flag => xxx ); } ...... .......
It seems to me that your -width arg is getting lost somewhere in the way you populate your custom widget. Try Tk::Derived

I'm not really a human, but I play one on earth. flash japh

In reply to Re: First column acting wierd! (MatchEntryMListbox) (Tk) by zentara
in thread First column acting wierd! (MatchEntryMListbox) (Tk) by Ace128

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.