Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Binding columns in Tk::Hlist

by rcseege (Pilgrim)
on Oct 05, 2006 at 17:03 UTC ( [id://576560]=note: print w/replies, xml ) Need Help??


in reply to Re: Binding columns in Tk::Hlist
in thread Binding columns in Tk::Hlist

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://576560]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-03-28 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found