v4169sgr has asked for the wisdom of the Perl Monks concerning the following question:

I use Perl 5.10 ActivePerl 5.14 on win7, with Tkx bindings to create a GUI.

I use listbox objects in many places to good effect, but I'd like now to find a quick and easy way to extend the out-of-the-box listbox functionality. Unfortunately I don't have the time or expertise to make large changes to the pre-prepared Perl modules, so ideally am looking for something that exists already that I could adapt to my own use.

What I am looking for is a way of populating (horizontal) listbox items with something like fixed-width tkx labels that are individually addressable & updated, and can be individually colourised etc. Ideally what I am looking for is something like a scrollable table of independently updating cells. To keep things simple each cell can be of fixed dimensions. If a listbox is not the best widget to use, that's fine, but as a minimum I'm looking for some way to select rows and query this selection. It would be nice to achieve menu bindings with mouse button events too.

Thanks for any help!!! :)

  • Comment on Listbox with independently updating labels on items

Replies are listed 'Best First'.
Re: Listbox with independently updating labels on items
by Anonymous Monk on Oct 04, 2013 at 08:39 UTC

      Thanks! Yes, this looks as though it may work for me.

      Can it be used with x- and y- scrollbars, similar to listboxes?

      Does one access this table functionality via (for example) ...

      Tkx::package_require("Tktable"); my $t = $mw->new_tk__table(-rows => 5, -cols => 3);

      I believe the -selecttype => row and -state => disabled may suit my requirements best.

      How would I populate row and column titles?