Using Tk::Columns (or Tk::MListbox) is a good suggestion, since they are both superior to Tk::HList in terms of performance, efficiency, and out-of-the-box functionality when it comes to tabular display.

Unfortunately, both have one giant strike against them. Both use Listbox as part of their Column representation which has been known to leak in recent versions of Tk. This tends to be most obvious during sorting operations in both megawidgets since each completely delete, then reload all entries within each Listbox during a sort. Otherwise, I'd wholeheartedly recommend either one.

HList becomes a lot more attractive when you need to do things like embedding other widgets, and have styles per cell. Although it is technically possible to have styles in the most recent version of Listbox, the options are more limited and neither Columns or MListbox have methods that provide easy access to this capability.

A few last thoughts about HListplus:

I've never seen the HListplus widget before now, but it would have been nice if each header provided a callback option that would be invoked after every resize (it doesn't). It would allow you to define a text style for each column and then modify the wraplength for each column as it's header resized from within the callback.

Rob

In reply to Re^2: Binding columns in Tk::Hlist by rcseege
in thread Binding columns in Tk::Hlist 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.